Skip to content

Commit

Permalink
filelist2content: Die on unknown option
Browse files Browse the repository at this point in the history
Change

filelist2content --help
stat: cannot stat `Usage:': No such file or directory
stat: cannot stat `cat': No such file or directory
stat: cannot stat `[OPTION]...': No such file or directory
stat: cannot stat `[FILE]...': No such file or directory
**ERROR** stat failed

to

filelist2content --help
filelist2content: unrecognized option '--help'.
**ERROR** beegetopt failed
  • Loading branch information
mariux committed Jun 19, 2012
1 parent e2d4677 commit ec45808
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/filelist2content.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ function do_f2c() {
###############################################################################

options=$(${BEE_GETOPT} --name filelist2content \
--no-skip-unknown-option \
--option root/r= \
-- "${@}")

Expand Down

0 comments on commit ec45808

Please sign in to comment.