diff options
author | Jameson Rollins <jrollins@finestructure.net> | 2010-01-11 11:10:30 -0500 |
---|---|---|
committer | Jameson Rollins <jrollins@finestructure.net> | 2010-01-11 11:10:30 -0500 |
commit | d23689f462039cb7f6fd8e3e5daee9bd08f6e5a3 (patch) | |
tree | 49a0af637a724e8bccd404d88e517804e7414e0a /src | |
parent | f83d778c9fdb08c775b78163f86522a0a055af6b (diff) |
fix invocation without subcommands to call usage function and exit 1 explicitlly
Diffstat (limited to 'src')
-rwxr-xr-x | src/monkeysphere | 2 | ||||
-rwxr-xr-x | src/monkeysphere-authentication | 2 | ||||
-rwxr-xr-x | src/monkeysphere-host | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/monkeysphere b/src/monkeysphere index 6489d2a..36ecf93 100755 --- a/src/monkeysphere +++ b/src/monkeysphere @@ -219,7 +219,7 @@ export LOG_PREFIX # get subcommand COMMAND="$1" -[ "$COMMAND" ] || $PGRM help +[ "$COMMAND" ] || (usage; exit 1) shift case $COMMAND in diff --git a/src/monkeysphere-authentication b/src/monkeysphere-authentication index 7870c0f..265ca32 100755 --- a/src/monkeysphere-authentication +++ b/src/monkeysphere-authentication @@ -151,7 +151,7 @@ export LOG_PREFIX # get subcommand COMMAND="$1" -[ "$COMMAND" ] || $PGRM help +[ "$COMMAND" ] || (usage; exit 1) shift case $COMMAND in diff --git a/src/monkeysphere-host b/src/monkeysphere-host index 52a4373..763a37b 100755 --- a/src/monkeysphere-host +++ b/src/monkeysphere-host @@ -238,7 +238,7 @@ export LOG_PREFIX # get subcommand COMMAND="$1" -[ "$COMMAND" ] || $PGRM help +[ "$COMMAND" ] || (usage; exit 1) shift case $COMMAND in |