hush: display useful help text
authorDan Fandrich <dan@coneharvesters.com>
Sun, 28 Nov 2010 00:54:39 +0000 (01:54 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 28 Nov 2010 00:54:39 +0000 (01:54 +0100)
Signed-off-by: Dan Fandrich <dan@coneharvesters.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/hush.c

index 26a50744e6a29e75966d3e46ff1bab36e116ebf7..a710f7cd9f2537fcb7280945ed7dd7b8425567a0 100644 (file)
 //config:        msh is deprecated and will be removed, please migrate to hush.
 //config:
 
-//usage:#define hush_trivial_usage NOUSAGE_STR
+/* -i (interactive) and -s (read stdin) are also accepted,
+ * but currently do nothing, therefore aren't shown in help.
+ * NOMMU-specific options are not meant to be used by users,
+ * therefore we don't show them either.
+ */
+//usage:#define hush_trivial_usage
+//usage:       "[-nx] [-c SCRIPT]"
 //usage:#define hush_full_usage ""
-//usage:#define msh_trivial_usage NOUSAGE_STR
+//usage:#define msh_trivial_usage hush_trivial_usage
 //usage:#define msh_full_usage ""
 //usage:#define sh_trivial_usage NOUSAGE_STR
 //usage:#define sh_full_usage ""