diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2015-11-14 00:03:49 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2015-12-03 22:37:00 +0100 |
commit | db15265519311fd9cfaaee8be153fb97036bbf21 (patch) | |
tree | 0b40aafcc40621dc0a9953e76f4f23329682c649 /bin | |
parent | a9907a1740d18299b87a187857ea832a51dda743 (diff) | |
download | ptxdist-db15265519311fd9cfaaee8be153fb97036bbf21.tar.gz ptxdist-db15265519311fd9cfaaee8be153fb97036bbf21.tar.xz |
ptxdist: show short error message for unknown arguments
The full 'usage' text is rarely useful because this is often triggered by
typos. Print the unknown argument instead and a hint where to find more
information.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ptxdist | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/ptxdist b/bin/ptxdist index 5c2f19154..a5eb5e257 100755 --- a/bin/ptxdist +++ b/bin/ptxdist @@ -2035,7 +2035,10 @@ EOF exit 1 ;; *) - usage + echo "ptxdist: '${cmd}' is not a PTXdist command." + echo + echo "Run '${0}' for a list of commands and options or '${0} --help' for more details." + echo exit 1 ;; esac |