]> git.ipfire.org Git - thirdparty/util-linux.git/commit
setarch: disallow unknown command line options
authorSami Kerola <kerolasa@iki.fi>
Sat, 16 Jun 2012 20:59:47 +0000 (22:59 +0200)
committerSami Kerola <kerolasa@iki.fi>
Sun, 17 Jun 2012 15:59:59 +0000 (17:59 +0200)
commitedf1cf0af541cd4ffe5d91d776627e0d70ded184
tree2bb83f7b4ee7b0ca6044dcba5b2d65b5c34658b5
parent3c44e03f8cb77572911a7bf2ecbcbb3e0c27a4fc
setarch: disallow unknown command line options

Exit with instruction to run --help if unknown option is encountered.
Before the following example printed error, but resulted to an attempt
to run argument.

$ x86_64 -x ls

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
sys-utils/setarch.c