Просмотр исходного кода

Added the possibility to set configuration variables via the command line.

Roland Illig 20 лет назад
Родитель
Сommit
50751f784c
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      maint/mc-test

+ 2 - 1
maint/mc-test

@@ -65,7 +65,7 @@ do_make_install=yes
 
 usage() {
 	cat >&2 <<EOF
-usage: `basename $0` [options ...] [<testname ...>]
+usage: `basename $0` [options ...] [var=value...] [<testname ...>]
 
 	-config <file>		load the configuration from <file>
 	-basedir <dir>		set the base directory
@@ -121,6 +121,7 @@ while test $# -ne 0; do
 		-nice)			shift; mc_nice_value="$1"; shift;;
 		-maxlines)		shift; mc_maxlines="$1"; shift;;
 		-quiet)			shift; quiet="yes";;
+		mc_*=*)			eval "$1"; shift;;
 
 		--) shift; break;;
 		-) shift; break;;