Skip to content

Commit 273207d

Browse files
tulinkryVladimir Kotal
authored andcommitted
removing the input file from empty subcommand as it does not really make sense to have it (#1639)
fixes #1624
1 parent 4884a07 commit 273207d

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

tools/Groups

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -249,25 +249,18 @@ Empty ()
249249
LocalUsage()
250250
{
251251
echo "Usage:"
252-
echo "${PROGNAME} empty [-i|--input <file>] [-v|--verbose] [-d]"
252+
echo "${PROGNAME} empty [-v|--verbose] [-d]"
253253
echo ""
254-
echo " Creates an empty configuration. If the input file is specified"
255-
echo " it directly outputs the given file."
254+
echo " Creates an empty configuration."
256255
echo ""
257256
echo "Options:"
258257
echo " -d option performs dry run with verbose mode"
259-
echo " -i option can be used for specifying the input file"
260258
}
261259

262260
while [ $# -gt 0 ]
263261
do
264262
opt="$1"
265263
case $opt in
266-
-i|--input)
267-
ExpectOption "$@"
268-
shift
269-
INPUT_FILE=$(OneArgument "$@")
270-
;;
271264
-d)
272265
DO=echo
273266
VERBOSE=true
@@ -292,6 +285,7 @@ Empty ()
292285
done
293286

294287
EMPTY=true
288+
unset INPUT_FILE
295289

296290
CheckInputFile
297291
Info

0 commit comments

Comments
 (0)