aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-10-20 14:54:58 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-10-20 14:54:58 +0000
commit99014e89656594ce9beec06f2605f6f7126907b9 (patch)
tree43662f946235171ab5ed15f6ba4b9d0c9466b27f
parenta03945aa8475941bb3f3170898cb4bc38a09e0a5 (diff)
downloadbusybox-w32-99014e89656594ce9beec06f2605f6f7126907b9.tar.gz
busybox-w32-99014e89656594ce9beec06f2605f6f7126907b9.tar.bz2
busybox-w32-99014e89656594ce9beec06f2605f6f7126907b9.zip
more fixes for help text wrt long options
-rw-r--r--include/usage.h45
1 files changed, 29 insertions, 16 deletions
diff --git a/include/usage.h b/include/usage.h
index 8f0a13c32..682b4d760 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -883,10 +883,14 @@
883#define expand_full_usage \ 883#define expand_full_usage \
884 "Convert tabs to spaces, writing to standard output." \ 884 "Convert tabs to spaces, writing to standard output." \
885 "\n\nOptions:" \ 885 "\n\nOptions:" \
886 "\n -i" USE_FEATURE_EXPAND_LONG_OPTIONS(",--initial") \ 886 USE_FEATURE_EXPAND_LONG_OPTIONS( \
887 " Do not convert tabs after non blanks" \ 887 "\n -i,--initial Do not convert tabs after non blanks" \
888 "\n -t" USE_FEATURE_EXPAND_LONG_OPTIONS(",--tabs=N") \ 888 "\n -t,--tabs=N Tabstops every N chars" \
889 " Tabstops every N chars" 889 ) \
890 SKIP_FEATURE_EXPAND_LONG_OPTIONS( \
891 "\n -i Do not convert tabs after non blanks" \
892 "\n -t Tabstops every N chars" \
893 )
890 894
891#define expr_trivial_usage \ 895#define expr_trivial_usage \
892 "EXPRESSION" 896 "EXPRESSION"
@@ -1380,9 +1384,9 @@
1380 " -d Two-byte decimal display\n" \ 1384 " -d Two-byte decimal display\n" \
1381 " -e FORMAT STRING\n" \ 1385 " -e FORMAT STRING\n" \
1382 " -f FORMAT FILE\n" \ 1386 " -f FORMAT FILE\n" \
1383 " -n LENGTH Interpret only length bytes of input\n" \ 1387 " -n LENGTH Interpret only LENGTH bytes of input\n" \
1384 " -o Two-byte octal display\n" \ 1388 " -o Two-byte octal display\n" \
1385 " -s OFFSET Skip offset bytes\n" \ 1389 " -s OFFSET Skip OFFSET bytes\n" \
1386 " -v Display all input data\n" \ 1390 " -v Display all input data\n" \
1387 " -x Two-byte hexadecimal display" 1391 " -x Two-byte hexadecimal display"
1388 1392
@@ -1434,15 +1438,20 @@
1434 "\n -d STRING URL decode STRING" \ 1438 "\n -d STRING URL decode STRING" \
1435 1439
1436#define hwclock_trivial_usage \ 1440#define hwclock_trivial_usage \
1441 USE_GETOPT_LONG( \
1437 "[-r|--show] [-s|--hctosys] [-w|--systohc]" \ 1442 "[-r|--show] [-s|--hctosys] [-w|--systohc]" \
1438 " [-l|--localtime] [-u|--utc]" \ 1443 " [-l|--localtime] [-u|--utc]" \
1439 " [-f FILE]" 1444 " [-f FILE]" \
1445 ) \
1446 SKIP_GETOPT_LONG( \
1447 "[-r] [-s] [-w] [-l] [-u] [-f FILE]" \
1448 )
1440#define hwclock_full_usage \ 1449#define hwclock_full_usage \
1441 "Query and set a hardware clock (RTC)" \ 1450 "Query and set a hardware clock (RTC)" \
1442 "\n\nOptions:\n" \ 1451 "\n\nOptions:\n" \
1443 " -r Read hardware clock and print result\n" \ 1452 " -r Read hardware clock and print result\n" \
1444 " -s Set the system time from the hardware clock\n" \ 1453 " -s Set the system time from the hardware clock\n" \
1445 " -w Set the hardware clock to the current system time\n" \ 1454 " -w Set the hardware clock to the system time\n" \
1446 " -u The hardware clock is kept in coordinated universal time\n" \ 1455 " -u The hardware clock is kept in coordinated universal time\n" \
1447 " -l The hardware clock is kept in local time\n" \ 1456 " -l The hardware clock is kept in local time\n" \
1448 " -f FILE Use the specified clock (e.g. /dev/rtc2)" 1457 " -f FILE Use the specified clock (e.g. /dev/rtc2)"
@@ -1453,7 +1462,7 @@
1453 "Print information for USERNAME or the current user" \ 1462 "Print information for USERNAME or the current user" \
1454 "\n\nOptions:\n" \ 1463 "\n\nOptions:\n" \
1455 USE_SELINUX( \ 1464 USE_SELINUX( \
1456 " -Z prints only the security context\n" \ 1465 " -Z Prints only the security context\n" \
1457 ) \ 1466 ) \
1458 " -g Prints only the group ID\n" \ 1467 " -g Prints only the group ID\n" \
1459 " -u Prints only the user ID\n" \ 1468 " -u Prints only the user ID\n" \
@@ -3096,7 +3105,7 @@ USE_FEATURE_RUN_PARTS_FANCY("\n -l Prints names of all matching files even when
3096 " FIRST INCREMENT LAST" 3105 " FIRST INCREMENT LAST"
3097 3106
3098#define setconsole_trivial_usage \ 3107#define setconsole_trivial_usage \
3099 "[-r|--reset] [DEVICE]" 3108 "[-r" USE_FEATURE_SETCONSOLE_LONG_OPTIONS("|--reset") "] [DEVICE]"
3100#define setconsole_full_usage \ 3109#define setconsole_full_usage \
3101 "Redirect system console output to DEVICE (default: /dev/tty)" \ 3110 "Redirect system console output to DEVICE (default: /dev/tty)" \
3102 "\n\nOptions:\n" \ 3111 "\n\nOptions:\n" \
@@ -3907,12 +3916,16 @@ USE_FEATURE_RUN_PARTS_FANCY("\n -l Prints names of all matching files even when
3907#define unexpand_full_usage \ 3916#define unexpand_full_usage \
3908 "Convert spaces to tabs, writing to standard output." \ 3917 "Convert spaces to tabs, writing to standard output." \
3909 "\n\nOptions:" \ 3918 "\n\nOptions:" \
3910 "\n -a" USE_FEATURE_UNEXPAND_LONG_OPTIONS(",--all") \ 3919 USE_FEATURE_UNEXPAND_LONG_OPTIONS( \
3911 " Convert all blanks" \ 3920 "\n -a,--all Convert all blanks" \
3912 "\n -f" USE_FEATURE_UNEXPAND_LONG_OPTIONS(",--first-only") \ 3921 "\n -f,--first-only Convert only leading blanks" \
3913 " Convert only leading sequences of blanks" \ 3922 "\n -t,--tabs=N Tabstops every N chars" \
3914 "\n -t" USE_FEATURE_UNEXPAND_LONG_OPTIONS(",--tabs=N") \ 3923 ) \
3915 " Tabstops every N chars" 3924 SKIP_FEATURE_UNEXPAND_LONG_OPTIONS( \
3925 "\n -a Convert all blanks" \
3926 "\n -f Convert only leading blanks" \
3927 "\n -t N Tabstops every N chars" \
3928 )
3916 3929
3917#define uniq_trivial_usage \ 3930#define uniq_trivial_usage \
3918 "[-fscdu]... [INPUT [OUTPUT]]" 3931 "[-fscdu]... [INPUT [OUTPUT]]"