Rename --consolewidth option to --console-width for consistency

This commit is contained in:
Kamil Shakirov 2020-08-19 15:27:05 +06:00 committed by G. Allais
parent 5905a00fd2
commit 1d601384ce
286 changed files with 313 additions and 312 deletions

View File

@ -5,10 +5,10 @@ Command-line options changes:
* Added `--color` and `--no-color` options for colored terminal output.
Color is enabled by default.
* Added `--consolewidth <auto|n>` option for printing margins. By default the
* Added `--console-width <auto|n>` option for printing margins. By default the
`auto` option is selected, the result is that the compiler detects the current
terminal width and sets it as the option value, otherwise a user value can be
provided. An explicit `0` has the effect of simulating a terminal with
provided. An explicit `0` has the effect of simulating a terminal with
unbounded width.
Compiler changes:
@ -19,7 +19,8 @@ Compiler changes:
REPL/IDE mode changes:
* Added `:color (on|off)` option for colored terminal output.
* Added `:consolewidth (auto|n)` option for printing margins. Mirrors the command line option.
* Added `:consolewidth (auto|n)` option for printing margins. Mirrors the
command line option.
Changes since Idris 2 v0.2.0
----------------------------

View File

@ -220,7 +220,7 @@ options = [MkOpt ["--check", "-c"] [] [CheckOnly]
(Just "Suppress the banner"),
MkOpt ["--quiet", "-q"] [] [Quiet]
(Just "Quiet mode; display fewer messages"),
MkOpt ["--consolewidth"] [AutoNat "console width"] (\l => [ConsoleWidth l])
MkOpt ["--console-width"] [AutoNat "console width"] (\l => [ConsoleWidth l])
(Just "Width for console output (0 for unbounded) (auto by default)"),
MkOpt ["--color", "--colour"] [] ([Color True])
(Just "Forces colored console output (enabled by default)"),

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --no-banner Total.idr < input
$1 --no-color --console-width 0 --no-banner Total.idr < input
rm -rf build

View File

@ -1,2 +1,2 @@
$1 --no-color --consolewidth 0 --no-banner Pythag.idr < input
$1 --no-color --console-width 0 --no-banner Pythag.idr < input
rm -rf build

View File

@ -1,2 +1,2 @@
$1 --no-color --consolewidth 0 --no-banner IORef.idr < input
$1 --no-color --console-width 0 --no-banner IORef.idr < input
rm -rf build

View File

@ -1,2 +1,2 @@
$1 --no-color --consolewidth 0 -p contrib --no-banner Buffer.idr < input
$1 --no-color --console-width 0 -p contrib --no-banner Buffer.idr < input
rm -rf build test.buf

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --no-banner Filter.idr < input
$1 --no-color --console-width 0 --no-banner Filter.idr < input
rm -rf build

View File

@ -1,4 +1,4 @@
$1 --no-color --consolewidth 0 --no-banner TypeCase.idr < input
$1 --no-color --consolewidth 0 --no-banner TypeCase2.idr --check
$1 --no-color --console-width 0 --no-banner TypeCase.idr < input
$1 --no-color --console-width 0 --no-banner TypeCase2.idr --check
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --no-banner TypeCase.idr < input
$1 --no-color --console-width 0 --no-banner TypeCase.idr < input
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --no-banner Nat.idr < input
$1 --no-color --console-width 0 --no-banner Nat.idr < input
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --no-banner uni.idr < input
$1 --no-color --console-width 0 --no-banner uni.idr < input
rm -rf build

View File

@ -9,6 +9,6 @@ case `uname -s` in
esac
${MAKE} all > /dev/null
$1 --no-color --consolewidth 0 --no-banner CB.idr < input
$1 --no-color --console-width 0 --no-banner CB.idr < input
rm -rf build
${MAKE} clean > /dev/null

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --no-banner bangs.idr < input
$1 --no-color --console-width 0 --no-banner bangs.idr < input
rm -rf build

View File

@ -1,2 +1,2 @@
$1 --no-color --consolewidth 0 --no-banner array.idr < input
$1 --no-color --console-width 0 --no-banner array.idr < input
rm -rf build

View File

@ -9,6 +9,6 @@ case `uname -s` in
esac
${MAKE} all > /dev/null
$1 --no-color --consolewidth 0 --no-banner Struct.idr < input
$1 --no-color --console-width 0 --no-banner Struct.idr < input
rm -rf build
${MAKE} clean > /dev/null

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --no-banner -p network Echo.idr < input
$1 --no-color --console-width 0 --no-banner -p network Echo.idr < input
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --no-banner Numbers.idr < input
$1 --no-color --console-width 0 --no-banner Numbers.idr < input
rm -rf build

View File

@ -16,5 +16,5 @@ IDRIS2_EXEC="$(basename "$1")"
cd "folder with spaces" || exit
"$IDRIS2_DIR/$IDRIS2_EXEC" --no-color --consolewidth 0 --no-banner Main.idr < ../input
"$IDRIS2_DIR/$IDRIS2_EXEC" --no-color --console-width 0 --no-banner Main.idr < ../input
rm -rf build

View File

@ -1,4 +1,4 @@
./gen_expected.sh
$1 --no-color --consolewidth 0 --no-banner dir.idr < input
$1 --no-color --console-width 0 --no-banner dir.idr < input
cat testdir/test.txt
rm -rf build testdir

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --no-banner File.idr < input
$1 --no-color --console-width 0 --no-banner File.idr < input
rm -rf build testout.txt

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --no-banner partial.idr < input
$1 --no-color --console-width 0 --no-banner partial.idr < input
rm -rf build testout.txt

View File

@ -1,3 +1,3 @@
POPEN_CMD="$1 --version" $1 --no-color --consolewidth 0 --no-banner Popen.idr < input
POPEN_CMD="$1 --version" $1 --no-color --console-width 0 --no-banner Popen.idr < input
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --no-banner Bits.idr < input
$1 --no-color --console-width 0 --no-banner Bits.idr < input
rm -rf build

View File

@ -9,6 +9,6 @@ case `uname -s` in
esac
${MAKE} all > /dev/null
$1 --no-color --consolewidth 0 --no-banner usealloc.idr < input
$1 --no-color --console-width 0 --no-banner usealloc.idr < input
rm -rf build
${MAKE} clean > /dev/null

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --no-banner File.idr < input
$1 --no-color --console-width 0 --no-banner File.idr < input
rm -rf build test.txt

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --no-banner Envy.idr < input
$1 --no-color --console-width 0 --no-banner Envy.idr < input
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --no-banner runst.idr < input
$1 --no-color --console-width 0 --no-banner runst.idr < input
rm -rf build

View File

@ -10,7 +10,7 @@ modules = Dummy
main = Dummy
executable = check_dir
opts = "--no-color --consolewidth 0"
opts = "--no-color --console-width 0"
builddir = "custom_build"
outputdir = "custom_output"

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --no-banner -p contrib StringParser.idr < input
$1 --no-color --console-width 0 --no-banner -p contrib StringParser.idr < input
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-banner --no-color --consolewidth 0 -p contrib ExpressionParser.idr < input
$1 --no-banner --no-color --console-width 0 -p contrib ExpressionParser.idr < input
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 numbers.idr -x main
$1 --no-color --console-width 0 numbers.idr -x main
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --ide-mode < input
$1 --no-color --console-width 0 --ide-mode < input
rm -rf build

View File

@ -1,4 +1,4 @@
$1 --no-color --consolewidth 0 --version | awk '{print $4}' | ./gen_expected.sh
$1 --no-color --consolewidth 0 --ide-mode < input
$1 --no-color --console-width 0 --version | awk '{print $4}' | ./gen_expected.sh
$1 --no-color --console-width 0 --ide-mode < input
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --ide-mode < input
$1 --no-color --console-width 0 --ide-mode < input
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --no-banner -p idris2 -p contrib -p network LazyCodegen.idr -o lazy-idris2 > /dev/null
./build/exec/lazy-idris2 --no-color --consolewidth 0 --no-banner --cg lazy Hello.idr -o hello
$1 --no-color --console-width 0 --no-banner -p idris2 -p contrib -p network LazyCodegen.idr -o lazy-idris2 > /dev/null
./build/exec/lazy-idris2 --no-color --console-width 0 --no-banner --cg lazy Hello.idr -o hello
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --no-banner --no-prelude Vect.idr < input
$1 --no-color --console-width 0 --no-banner --no-prelude Vect.idr < input
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --no-banner --no-prelude Do.idr < input
$1 --no-color --console-width 0 --no-banner --no-prelude Do.idr < input
rm -rf build

View File

@ -1,4 +1,4 @@
echo ':q' | $1 --no-color --consolewidth 0 --no-banner --no-prelude Ambig1.idr
echo ':q' | $1 --no-color --consolewidth 0 --no-banner --no-prelude Ambig2.idr
echo ':q' | $1 --no-color --console-width 0 --no-banner --no-prelude Ambig1.idr
echo ':q' | $1 --no-color --console-width 0 --no-banner --no-prelude Ambig2.idr
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --no-banner --no-prelude Wheres.idr < input
$1 --no-color --console-width 0 --no-banner --no-prelude Wheres.idr < input
rm -rf build

View File

@ -1,3 +1,3 @@
echo ':q' | $1 --no-color --consolewidth 0 --no-banner --no-prelude NoInfer.idr
echo ':q' | $1 --no-color --console-width 0 --no-banner --no-prelude NoInfer.idr
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --no-banner --no-prelude PMLet.idr < input
$1 --no-color --console-width 0 --no-banner --no-prelude PMLet.idr < input
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --no-banner --no-prelude DoLocal.idr < input
$1 --no-color --console-width 0 --no-banner --no-prelude DoLocal.idr < input
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --no-banner --no-prelude If.idr < input
$1 --no-color --console-width 0 --no-banner --no-prelude If.idr < input
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --no-banner --no-prelude LetCase.idr < input
$1 --no-color --console-width 0 --no-banner --no-prelude LetCase.idr < input
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --no-banner --no-prelude Comp.idr < input
$1 --no-color --console-width 0 --no-banner --no-prelude Comp.idr < input
rm -rf build

View File

@ -1,5 +1,5 @@
$1 --no-color --consolewidth 0 --check Dots1.idr
$1 --no-color --consolewidth 0 --check Dots2.idr
$1 --no-color --consolewidth 0 --check Dots3.idr
$1 --no-color --console-width 0 --check Dots1.idr
$1 --no-color --console-width 0 --check Dots2.idr
$1 --no-color --console-width 0 --check Dots3.idr
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --check VIndex.idr
$1 --no-color --console-width 0 --check VIndex.idr
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --check Implicits.idr
$1 --no-color --console-width 0 --check Implicits.idr
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --check Rewrite.idr
$1 --no-color --console-width 0 --check Rewrite.idr
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --check George.idr
$1 --no-color --console-width 0 --check George.idr
rm -rf build

View File

@ -1,4 +1,4 @@
$1 --no-color --consolewidth 0 --check Eta.idr
$1 --no-color --consolewidth 0 --check Eta2.idr
$1 --no-color --console-width 0 --check Eta.idr
$1 --no-color --console-width 0 --check Eta2.idr
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --no-banner CaseInf.idr < input
$1 --no-color --console-width 0 --no-banner CaseInf.idr < input
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --check Fin.idr
$1 --no-color --console-width 0 --check Fin.idr
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --no-banner CaseBlock.idr < input
$1 --no-color --console-width 0 --no-banner CaseBlock.idr < input
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --no-banner Mut.idr < input
$1 --no-color --console-width 0 --no-banner Mut.idr < input
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --no-banner CaseDep.idr < input
$1 --no-color --console-width 0 --no-banner CaseDep.idr < input
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --no-banner Erase.idr < input
$1 --no-color --console-width 0 --no-banner Erase.idr < input
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --no-banner Params.idr < input
$1 --no-color --console-width 0 --no-banner Params.idr < input
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --no-banner PatLam.idr < input
$1 --no-color --console-width 0 --no-banner PatLam.idr < input
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --no-banner < input
$1 --no-color --console-width 0 --no-banner < input
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --check Erl.idr
$1 --no-color --console-width 0 --check Erl.idr
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --check Temp.idr
$1 --no-color --console-width 0 --check Temp.idr
rm -rf build

View File

@ -1,5 +1,5 @@
unset IDRIS2_PATH
$1 --no-color --consolewidth 0 --no-banner --no-prelude < input
$1 --no-color --console-width 0 --no-banner --no-prelude < input
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --no-banner Params.idr < input
$1 --no-color --console-width 0 --no-banner Params.idr < input
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --check arity.idr
$1 --no-color --console-width 0 --check arity.idr
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --check erased.idr
$1 --no-color --console-width 0 --check erased.idr
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --no-banner Idiom.idr < input
$1 --no-color --console-width 0 --no-banner Idiom.idr < input
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --check unboundimps.idr
$1 --no-color --console-width 0 --check unboundimps.idr
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --check lets.idr
$1 --no-color --console-width 0 --check lets.idr
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --no-banner using.idr < input
$1 --no-color --console-width 0 --no-banner using.idr < input
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --no-banner defimp.idr < input
$1 --no-color --console-width 0 --no-banner defimp.idr < input
rm -rf build

View File

@ -1,4 +1,4 @@
echo ':q' | $1 --no-color --consolewidth 0 --no-banner --no-prelude Comments.idr
echo ':q' | $1 --no-color --consolewidth 0 --no-banner Issue279.idr
echo ':q' | $1 --no-color --console-width 0 --no-banner --no-prelude Comments.idr
echo ':q' | $1 --no-color --console-width 0 --no-banner Issue279.idr
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --no-banner Resugar.idr < input
$1 --no-color --console-width 0 --no-banner Resugar.idr < input
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --no-banner Main.idr < input
$1 --no-color --console-width 0 --no-banner Main.idr < input
rm -rf build

View File

@ -1,3 +1,3 @@
echo ":q" | $1 --no-color --consolewidth 0 --no-banner Default.idr
echo ":q" | $1 --no-color --console-width 0 --no-banner Default.idr
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --check QDo.idr
$1 --no-color --console-width 0 --check QDo.idr
rm -rf build

View File

@ -1,4 +1,4 @@
$1 --no-banner --no-color --consolewidth 0 LiteralsString.idr < input
$1 --no-banner --no-color --consolewidth 0 LiteralsInteger.idr < input2
$1 --no-banner --no-color --console-width 0 LiteralsString.idr < input
$1 --no-banner --no-color --console-width 0 LiteralsInteger.idr < input2
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --no-banner Vect.idr < input
$1 --no-color --console-width 0 --no-banner Vect.idr < input
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --no-banner Vect.idr < input
$1 --no-color --console-width 0 --no-banner Vect.idr < input
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --no-banner Cover.idr < input
$1 --no-color --console-width 0 --no-banner Cover.idr < input
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --no-banner Cover.idr < input
$1 --no-color --console-width 0 --no-banner Cover.idr < input
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --no-banner Cover.idr < input
$1 --no-color --console-width 0 --no-banner Cover.idr < input
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --no-banner foobar.idr < input
$1 --no-color --console-width 0 --no-banner foobar.idr < input
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --no-banner eq.idr --check
$1 --no-color --console-width 0 --no-banner eq.idr --check
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --no-banner wcov.idr < input
$1 --no-color --console-width 0 --no-banner wcov.idr < input
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --check unreachable.idr
$1 --no-color --console-width 0 --check unreachable.idr
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --check casetot.idr
$1 --no-color --console-width 0 --check casetot.idr
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --no-banner < input
$1 --no-color --console-width 0 --no-banner < input
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --no-banner Doc.idr < input
$1 --no-color --console-width 0 --no-banner Doc.idr < input
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --check Error.idr
$1 --no-color --console-width 0 --check Error.idr
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --check Error.idr
$1 --no-color --console-width 0 --check Error.idr
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --check Error.idr
$1 --no-color --console-width 0 --check Error.idr
rm -rf build

View File

@ -1,4 +1,4 @@
$1 --no-color --consolewidth 0 --check Error1.idr
$1 --no-color --consolewidth 0 --check Error2.idr
$1 --no-color --console-width 0 --check Error1.idr
$1 --no-color --console-width 0 --check Error2.idr
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --check IfErr.idr
$1 --no-color --console-width 0 --check IfErr.idr
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --check IfErr.idr
$1 --no-color --console-width 0 --check IfErr.idr
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --check CongErr.idr
$1 --no-color --console-width 0 --check CongErr.idr
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --no-banner DoesntExist.idr < input
$1 --no-color --console-width 0 --no-banner DoesntExist.idr < input
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 --no-banner Exists.idr < input
$1 --no-color --console-width 0 --no-banner Exists.idr < input
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 Loop.idr --check
$1 --no-color --console-width 0 Loop.idr --check
rm -rf build

View File

@ -1,3 +1,3 @@
$1 --no-color --consolewidth 0 ConstructorDuplicate.idr --check
$1 --no-color --console-width 0 ConstructorDuplicate.idr --check
rm -rf build

Some files were not shown because too many files have changed in this diff Show More