mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 18:14:25 +03:00
Added the possibility to set configuration variables via the command line.
This commit is contained in:
parent
2e7fa0fa37
commit
50751f784c
@ -65,7 +65,7 @@ do_make_install=yes
|
|||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
cat >&2 <<EOF
|
cat >&2 <<EOF
|
||||||
usage: `basename $0` [options ...] [<testname ...>]
|
usage: `basename $0` [options ...] [var=value...] [<testname ...>]
|
||||||
|
|
||||||
-config <file> load the configuration from <file>
|
-config <file> load the configuration from <file>
|
||||||
-basedir <dir> set the base directory
|
-basedir <dir> set the base directory
|
||||||
@ -121,6 +121,7 @@ while test $# -ne 0; do
|
|||||||
-nice) shift; mc_nice_value="$1"; shift;;
|
-nice) shift; mc_nice_value="$1"; shift;;
|
||||||
-maxlines) shift; mc_maxlines="$1"; shift;;
|
-maxlines) shift; mc_maxlines="$1"; shift;;
|
||||||
-quiet) shift; quiet="yes";;
|
-quiet) shift; quiet="yes";;
|
||||||
|
mc_*=*) eval "$1"; shift;;
|
||||||
|
|
||||||
--) shift; break;;
|
--) shift; break;;
|
||||||
-) shift; break;;
|
-) shift; break;;
|
||||||
|
Loading…
Reference in New Issue
Block a user