aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h2
-rw-r--r--include/usage.h30
2 files changed, 16 insertions, 16 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 62a60f9f4..e1c36a57b 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -835,7 +835,7 @@ int sanitize_env_if_suid(void) FAST_FUNC;
835 835
836extern const char *const bb_argv_dash[]; /* "-", NULL */ 836extern const char *const bb_argv_dash[]; /* "-", NULL */
837extern const char *opt_complementary; 837extern const char *opt_complementary;
838#if ENABLE_GETOPT_LONG 838#if ENABLE_LONG_OPTS || ENABLE_FEATURE_GETOPT_LONG
839#define No_argument "\0" 839#define No_argument "\0"
840#define Required_argument "\001" 840#define Required_argument "\001"
841#define Optional_argument "\002" 841#define Optional_argument "\002"
diff --git a/include/usage.h b/include/usage.h
index c6006aa65..ad6ee8319 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -610,13 +610,13 @@
610#define cryptpw_full_usage "\n\n" \ 610#define cryptpw_full_usage "\n\n" \
611 "Crypt the PASSWORD using crypt(3)\n" \ 611 "Crypt the PASSWORD using crypt(3)\n" \
612 "\nOptions:" \ 612 "\nOptions:" \
613 IF_GETOPT_LONG( \ 613 IF_LONG_OPTS( \
614 "\n -P,--password-fd=NUM Read password from fd NUM" \ 614 "\n -P,--password-fd=NUM Read password from fd NUM" \
615/* "\n -s,--stdin Use stdin; like -P0" */ \ 615/* "\n -s,--stdin Use stdin; like -P0" */ \
616 "\n -m,--method=TYPE Encryption method TYPE" \ 616 "\n -m,--method=TYPE Encryption method TYPE" \
617 "\n -S,--salt=SALT" \ 617 "\n -S,--salt=SALT" \
618 ) \ 618 ) \
619 IF_NOT_GETOPT_LONG( \ 619 IF_NOT_LONG_OPTS( \
620 "\n -P NUM Read password from fd NUM" \ 620 "\n -P NUM Read password from fd NUM" \
621/* "\n -s Use stdin; like -P0" */ \ 621/* "\n -s Use stdin; like -P0" */ \
622 "\n -m TYPE Encryption method TYPE" \ 622 "\n -m TYPE Encryption method TYPE" \
@@ -631,13 +631,13 @@
631#define mkpasswd_full_usage "\n\n" \ 631#define mkpasswd_full_usage "\n\n" \
632 "Crypt the PASSWORD using crypt(3)\n" \ 632 "Crypt the PASSWORD using crypt(3)\n" \
633 "\nOptions:" \ 633 "\nOptions:" \
634 IF_GETOPT_LONG( \ 634 IF_LONG_OPTS( \
635 "\n -P,--password-fd=NUM Read password from fd NUM" \ 635 "\n -P,--password-fd=NUM Read password from fd NUM" \
636/* "\n -s,--stdin Use stdin; like -P0" */ \ 636/* "\n -s,--stdin Use stdin; like -P0" */ \
637 "\n -m,--method=TYPE Encryption method TYPE" \ 637 "\n -m,--method=TYPE Encryption method TYPE" \
638 "\n -S,--salt=SALT" \ 638 "\n -S,--salt=SALT" \
639 ) \ 639 ) \
640 IF_NOT_GETOPT_LONG( \ 640 IF_NOT_LONG_OPTS( \
641 "\n -P NUM Read password from fd NUM" \ 641 "\n -P NUM Read password from fd NUM" \
642/* "\n -s Use stdin; like -P0" */ \ 642/* "\n -s Use stdin; like -P0" */ \
643 "\n -m TYPE Encryption method TYPE" \ 643 "\n -m TYPE Encryption method TYPE" \
@@ -969,12 +969,12 @@
969#define dumpleases_full_usage "\n\n" \ 969#define dumpleases_full_usage "\n\n" \
970 "Display DHCP leases granted by udhcpd\n" \ 970 "Display DHCP leases granted by udhcpd\n" \
971 "\nOptions:" \ 971 "\nOptions:" \
972 IF_GETOPT_LONG( \ 972 IF_LONG_OPTS( \
973 "\n -f,--file=FILE Leases file to load" \ 973 "\n -f,--file=FILE Leases file to load" \
974 "\n -r,--remaining Interpret lease times as time remaining" \ 974 "\n -r,--remaining Interpret lease times as time remaining" \
975 "\n -a,--absolute Interpret lease times as expire time" \ 975 "\n -a,--absolute Interpret lease times as expire time" \
976 ) \ 976 ) \
977 IF_NOT_GETOPT_LONG( \ 977 IF_NOT_LONG_OPTS( \
978 "\n -f FILE Leases file to load" \ 978 "\n -f FILE Leases file to load" \
979 "\n -r Interpret lease times as time remaining" \ 979 "\n -r Interpret lease times as time remaining" \
980 "\n -a Interpret lease times as expire time" \ 980 "\n -a Interpret lease times as expire time" \
@@ -1396,7 +1396,7 @@
1396 "[OPTIONS]..." 1396 "[OPTIONS]..."
1397#define getopt_full_usage "\n\n" \ 1397#define getopt_full_usage "\n\n" \
1398 "Parse command options\n" \ 1398 "Parse command options\n" \
1399 IF_GETOPT_LONG( \ 1399 IF_LONG_OPTS( \
1400 "\n -a,--alternative Allow long options starting with single -" \ 1400 "\n -a,--alternative Allow long options starting with single -" \
1401 "\n -l,--longoptions=longopts Long options to be recognized" \ 1401 "\n -l,--longoptions=longopts Long options to be recognized" \
1402 "\n -n,--name=progname The name under which errors are reported" \ 1402 "\n -n,--name=progname The name under which errors are reported" \
@@ -1407,7 +1407,7 @@
1407 "\n -T,--test Test for getopt(1) version" \ 1407 "\n -T,--test Test for getopt(1) version" \
1408 "\n -u,--unquoted Don't quote the output" \ 1408 "\n -u,--unquoted Don't quote the output" \
1409 ) \ 1409 ) \
1410 IF_NOT_GETOPT_LONG( \ 1410 IF_NOT_LONG_OPTS( \
1411 "\n -a Allow long options starting with single -" \ 1411 "\n -a Allow long options starting with single -" \
1412 "\n -l longopts Long options to be recognized" \ 1412 "\n -l longopts Long options to be recognized" \
1413 "\n -n progname The name under which errors are reported" \ 1413 "\n -n progname The name under which errors are reported" \
@@ -3184,16 +3184,16 @@
3184 "\n -u Unlock (re-enable) account" \ 3184 "\n -u Unlock (re-enable) account" \
3185 3185
3186#define chpasswd_trivial_usage \ 3186#define chpasswd_trivial_usage \
3187 IF_GETOPT_LONG("[--md5|--encrypted]") IF_NOT_GETOPT_LONG("[-m|-e]") 3187 IF_LONG_OPTS("[--md5|--encrypted]") IF_NOT_LONG_OPTS("[-m|-e]")
3188#define chpasswd_full_usage "\n\n" \ 3188#define chpasswd_full_usage "\n\n" \
3189 "Read user:password information from stdin " \ 3189 "Read user:password information from stdin " \
3190 "and update /etc/passwd accordingly.\n" \ 3190 "and update /etc/passwd accordingly.\n" \
3191 "\nOptions:" \ 3191 "\nOptions:" \
3192 IF_GETOPT_LONG( \ 3192 IF_LONG_OPTS( \
3193 "\n -e,--encrypted Supplied passwords are in encrypted form" \ 3193 "\n -e,--encrypted Supplied passwords are in encrypted form" \
3194 "\n -m,--md5 Use MD5 encryption instead of DES" \ 3194 "\n -m,--md5 Use MD5 encryption instead of DES" \
3195 ) \ 3195 ) \
3196 IF_NOT_GETOPT_LONG( \ 3196 IF_NOT_LONG_OPTS( \
3197 "\n -e Supplied passwords are in encrypted form" \ 3197 "\n -e Supplied passwords are in encrypted form" \
3198 "\n -m Use MD5 encryption instead of DES" \ 3198 "\n -m Use MD5 encryption instead of DES" \
3199 ) 3199 )
@@ -3632,7 +3632,7 @@
3632 "[-a | -l | -u] [-d DEV] [-m MODE] [-s SEC | -t TIME]" 3632 "[-a | -l | -u] [-d DEV] [-m MODE] [-s SEC | -t TIME]"
3633#define rtcwake_full_usage "\n\n" \ 3633#define rtcwake_full_usage "\n\n" \
3634 "Enter a system sleep state until specified wakeup time\n" \ 3634 "Enter a system sleep state until specified wakeup time\n" \
3635 IF_GETOPT_LONG( \ 3635 IF_LONG_OPTS( \
3636 "\n -a,--auto Read clock mode from adjtime" \ 3636 "\n -a,--auto Read clock mode from adjtime" \
3637 "\n -l,--local Clock is set to local time" \ 3637 "\n -l,--local Clock is set to local time" \
3638 "\n -u,--utc Clock is set to UTC time" \ 3638 "\n -u,--utc Clock is set to UTC time" \
@@ -3641,7 +3641,7 @@
3641 "\n -s,--seconds=SEC Set the timeout in SEC seconds from now" \ 3641 "\n -s,--seconds=SEC Set the timeout in SEC seconds from now" \
3642 "\n -t,--time=TIME Set the timeout to TIME seconds from epoch" \ 3642 "\n -t,--time=TIME Set the timeout to TIME seconds from epoch" \
3643 ) \ 3643 ) \
3644 IF_NOT_GETOPT_LONG( \ 3644 IF_NOT_LONG_OPTS( \
3645 "\n -a Read clock mode from adjtime" \ 3645 "\n -a Read clock mode from adjtime" \
3646 "\n -l Clock is set to local time" \ 3646 "\n -l Clock is set to local time" \
3647 "\n -u Clock is set to UTC time" \ 3647 "\n -u Clock is set to UTC time" \
@@ -4640,7 +4640,7 @@ IF_FEATURE_TUNCTL_UG( \
4640 "[-Cfbnqtvo] [-c CID] [-V VCLS] [-H HOSTNAME] [-i INTERFACE]\n" \ 4640 "[-Cfbnqtvo] [-c CID] [-V VCLS] [-H HOSTNAME] [-i INTERFACE]\n" \
4641 " [-p pidfile] [-r IP] [-s script] [-O dhcp-option]..." IF_FEATURE_UDHCP_PORT(" [-P N]") 4641 " [-p pidfile] [-r IP] [-s script] [-O dhcp-option]..." IF_FEATURE_UDHCP_PORT(" [-P N]")
4642#define udhcpc_full_usage "\n\n" \ 4642#define udhcpc_full_usage "\n\n" \
4643 IF_GETOPT_LONG( \ 4643 IF_LONG_OPTS( \
4644 " -V,--vendorclass=CLASSID Vendor class identifier" \ 4644 " -V,--vendorclass=CLASSID Vendor class identifier" \
4645 "\n -i,--interface=INTERFACE Interface to use (default eth0)" \ 4645 "\n -i,--interface=INTERFACE Interface to use (default eth0)" \
4646 "\n -H,-h,--hostname=HOSTNAME Client hostname" \ 4646 "\n -H,-h,--hostname=HOSTNAME Client hostname" \
@@ -4669,7 +4669,7 @@ IF_FEATURE_TUNCTL_UG( \
4669 "\n -a,--arping Use arping to validate offered address" \ 4669 "\n -a,--arping Use arping to validate offered address" \
4670 ) \ 4670 ) \
4671 ) \ 4671 ) \
4672 IF_NOT_GETOPT_LONG( \ 4672 IF_NOT_LONG_OPTS( \
4673 " -V CLASSID Vendor class identifier" \ 4673 " -V CLASSID Vendor class identifier" \
4674 "\n -i INTERFACE Interface to use (default: eth0)" \ 4674 "\n -i INTERFACE Interface to use (default: eth0)" \
4675 "\n -H,-h HOSTNAME Client hostname" \ 4675 "\n -H,-h HOSTNAME Client hostname" \