ws, show date setting format
authorTim Riker <tim@rikers.org>
Sun, 28 Dec 2003 05:02:40 +0000 (05:02 -0000)
committerTim Riker <tim@rikers.org>
Sun, 28 Dec 2003 05:02:40 +0000 (05:02 -0000)
include/usage.h

index 43c63e5f308cd06845b280fe0897214052e5ed3d..d422486f8db6180b9ce9839d13ac7c9cd4071816 100644 (file)
        "\tt\t\tlist\n" \
        "\tu\t\tunconditional overwrite\n" \
        "\tF\t\tinput from file"
-       
+
 #define crond_trivial_usage \
        "-d[#] -c <crondir> -f -b"
 #define crond_full_usage \
 #endif
 
 #define date_trivial_usage \
-       "[OPTION]... [+FORMAT]"
+       "[OPTION]... [MMDDhhmm[[CC]YY][.ss]] [+FORMAT]"
 #define date_full_usage \
        "Displays the current time in the given FORMAT, or sets the system date.\n" \
        "\nOptions:\n" \
   #define USAGE_HUMAN_READABLE(a) a
   #define USAGE_NOT_HUMAN_READABLE(a)
 #else
-  #define USAGE_HUMAN_READABLE(a) 
+  #define USAGE_HUMAN_READABLE(a)
   #define USAGE_NOT_HUMAN_READABLE(a) a
 #endif
 #define df_trivial_usage \
 #ifdef CONFIG_FEATURE_FANCY_ECHO
   #define USAGE_FANCY_ECHO(a) a
 #else
-  #define USAGE_FANCY_ECHO(a) 
+  #define USAGE_FANCY_ECHO(a)
 #endif
 
 #define echo_trivial_usage \
        "\t-v, --verbose          Verbose\n" \
        "\t-u, --username         Username to be used\n" \
        "\t-p, --password         Password to be used\n" \
-       "\t-P, --port             Port number to be used\n" 
+       "\t-P, --port             Port number to be used\n"
 
 #define ftpput_trivial_usage \
        "[options] remote-host remote-directory local-file"
        "\t-v, --verbose          Verbose\n" \
        "\t-u, --username         Username to be used\n" \
        "\t-p, --password         Password to be used\n" \
-       "\t-P, --port             Port number to be used\n" 
+       "\t-P, --port             Port number to be used\n"
 
 #define getopt_trivial_usage \
        "[OPTIONS]..."
        "\t-v\tprint out what would happen before doing it\n" \
        "\t-m\tdon't run any mappings\n" \
        "\t-f\tforce de/configuration\n"
-       
+
 #define inetd_trivial_usage \
        "[-q len] [conf]"
 #define inetd_full_usage \
        "Options:\n" \
        "\t-b\t--broadcast\tDisplay calculated broadcast address.\n" \
        "\t-n\t--netmask\tDisplay default netmask for IP.\n" \
-       "\t-w\t--network\tDisplay calculated network address." 
+       "\t-w\t--network\tDisplay calculated network address."
 #else
 #define ipcalc_trivial_usage \
        "[OPTION]... ipaddr <netmask>"
        "\t-n\t--netmask\tDisplay default netmask for IP.\n" \
        "\t-w\t--network\tDisplay calculated network address.\n" \
        "\t-h\t--hostname\tDisplay first resolved host name.\n" \
-       "\t-s\t--silent\tDon't ever display error messages." 
+       "\t-s\t--silent\tDon't ever display error messages."
 #endif
 
 #define ipcalc_notes_usage \
        "Options:\n" \
        "\t-l\tList all signal names and numbers."
 #define killall_example_usage \
-       "$ killall apache\n" 
+       "$ killall apache\n"
 
 #define klogd_trivial_usage \
        "[-c n] [-n]"
 #define ln_example_usage \
        "$ ln -s BusyBox /tmp/ls\n" \
        "$ ls -l /tmp/ls\n" \
-       "lrwxrwxrwx    1 root     root            7 Apr 12 18:39 ls -> BusyBox*\n" 
+       "lrwxrwxrwx    1 root     root            7 Apr 12 18:39 ls -> BusyBox*\n"
 
 #define loadfont_trivial_usage \
        "< font"
 #define loadfont_full_usage \
        "Loads a console font from standard input."
 #define loadfont_example_usage \
-       "$ loadfont < /etc/i18n/fontname\n" 
+       "$ loadfont < /etc/i18n/fontname\n"
 
 #define loadkmap_trivial_usage \
        "< keymap"
 #define loadkmap_full_usage \
        "Loads a binary keyboard translation table from standard input."
 #define loadkmap_example_usage \
-       "$ loadkmap < /etc/i18n/lang-keymap\n" 
+       "$ loadkmap < /etc/i18n/lang-keymap\n"
 
 #define logger_trivial_usage \
        "[OPTION]... [MESSAGE]"
        "\t-p\tEnter the message with the specified priority.\n" \
        "\t\tThis may be numerical or a ``facility.level'' pair."
 #define logger_example_usage \
-       "$ logger "hello"\n" 
+       "$ logger "hello"\n"
 
 #define login_trivial_usage \
        "[OPTION]... [username] [ENV=VAR ...]"
        "Print the name of the current user."
 #define logname_example_usage \
        "$ logname\n" \
-       "root\n" 
+       "root\n"
 
 #define logread_trivial_usage \
        "[OPTION]..."
        "$ makedevs /dev/ttyS c 4 66 2 63\n" \
        "[creates ttyS2-ttyS63]\n" \
        "$ makedevs /dev/hda b 3 0 0 8 s\n" \
-       "[creates hda,hda1-hda8]\n" 
+       "[creates hda,hda1-hda8]\n"
 
 #ifdef CONFIG_FEATURE_MD5_SHA1_SUM_CHECK
 #define USAGE_MD5_SHA1_SUM_CHECK(a) a
        "/tmp/foo: File exists\n" \
        "$ mkdir /tmp/foo/bar/baz\n" \
        "/tmp/foo/bar/baz: No such file or directory\n" \
-       "$ mkdir -p /tmp/foo/bar/baz\n" 
+       "$ mkdir -p /tmp/foo/bar/baz\n"
 
 #define mkfifo_trivial_usage \
        "[OPTIONS] name"
        "\tp:\tMake a named pipe. MAJOR and MINOR are ignored for named pipes."
 #define mknod_example_usage \
        "$ mknod /dev/fd0 b 2 0 \n" \
-       "$ mknod -m 644 /tmp/pipe p\n" 
+       "$ mknod -m 644 /tmp/pipe p\n"
 
 #define mkswap_trivial_usage \
        "[-c] [-v0|-v1] device [block-count]"
        "$ mktemp /tmp/temp.XXXXXX\n" \
        "/tmp/temp.mWiLjM\n" \
        "$ ls -la /tmp/temp.mWiLjM\n" \
-       "-rw-------    1 andersen andersen        0 Apr 25 17:10 /tmp/temp.mWiLjM\n" 
+       "-rw-------    1 andersen andersen        0 Apr 25 17:10 /tmp/temp.mWiLjM\n"
 
 #define modprobe_trivial_usage \
        "[FILE ...]"
 #define modprobe_full_usage \
        "Used for high level module loading and unloading."
 #define modprobe_example_usage \
-       "$ modprobe cdrom\n" 
+       "$ modprobe cdrom\n"
 
 #define more_trivial_usage \
        "[FILE ...]"
 #define more_full_usage \
        "More is a filter for viewing FILE one screenful at a time."
 #define more_example_usage \
-       "$ dmesg | more\n" 
+       "$ dmesg | more\n"
 
 #ifdef CONFIG_FEATURE_MOUNT_LOOP
   #define USAGE_MOUNT_LOOP(a) a
        "proc on /proc type proc (rw)\n" \
        "devpts on /dev/pts type devpts (rw)\n" \
        "$ mount /dev/fd0 /mnt -t msdos -o ro\n" \
-       "$ mount /tmp/diskimage /opt -t ext2 -o loop\n" 
+       "$ mount /tmp/diskimage /opt -t ext2 -o loop\n"
 
 #define msvc_trivial_usage \
        "-[udorspchaitkx] service"
 #define mv_full_usage \
        "Rename SOURCE to DEST, or move SOURCE(s) to DIRECTORY."
 #define mv_example_usage \
-       "$ mv /tmp/foo /bin/bar\n" 
+       "$ mv /tmp/foo /bin/bar\n"
 
 #define nameif_trivial_usage \
        "[-s] [-c FILE] [{IFNAME MACADDR}]"
                "Options:\n" \
                "\t-c FILE\t\tUse configuration file (default is /etc/mactab)\n" \
                "\t-s\t\tUse syslog (LOCAL0 facility).\n" \
-               "\tIFNAME MACADDR\tnew_interface_name interface_mac_address\n" 
+               "\tIFNAME MACADDR\tnew_interface_name interface_mac_address\n"
 #define nameif_example_usage \
                "$ nameif -s dmz0 00:A0:C9:8C:F6:3F\n" \
                " or\n" \
                "$ nameif -c /etc/my_mactab_file\n" \
 
 #define nc_trivial_usage \
-       "[OPTIONS] [IP] [port]" 
+       "[OPTIONS] [IP] [port]"
 #define nc_full_usage \
        "Netcat opens a pipe to IP:port\n\n" \
        "Options:\n" \
        "214-    HELO EHLO MAIL RCPT DATA AUTH\n" \
        "214     NOOP QUIT RSET HELP\n" \
        "quit\n" \
-       "221 foobar closing connection\n" 
+       "221 foobar closing connection\n"
 
 #define netstat_trivial_usage \
        "[-laenrtuwx]"
        "Address:    default\n" \
        "\n" \
        "Name:       debian\n" \
-       "Address:    127.0.0.1\n" 
+       "Address:    127.0.0.1\n"
 
 #define od_trivial_usage \
        "[-aBbcDdeFfHhIiLlOovXx] [FILE]"
 
 #ifdef CONFIG_FEATURE_SHA1_PASSWORDS
   #define PASSWORD_ALG_TYPES(a) a
-#else   
+#else
   #define PASSWORD_ALG_TYPES(a)
 #endif
 #define passwd_trivial_usage \
        "\n" \
        "--- debian ping statistics ---\n" \
        "1 packets transmitted, 1 packets received, 0% packet loss\n" \
-       "round-trip min/avg/max = 20.1/20.1/20.1 ms\n" 
+       "round-trip min/avg/max = 20.1/20.1/20.1 ms\n"
 
 #ifndef CONFIG_FEATURE_FANCY_PING6
 #define ping6_trivial_usage "host"
        "\n" \
        "--- ip6-localhost ping statistics ---\n" \
        "1 packets transmitted, 1 packets received, 0% packet loss\n" \
-       "round-trip min/avg/max = 20.1/20.1/20.1 ms\n" 
+       "round-trip min/avg/max = 20.1/20.1/20.1 ms\n"
 
 #define pivot_root_trivial_usage \
        "NEW_ROOT PUT_OLD"
        "Where FORMAT controls the output exactly as in C printf."
 #define printf_example_usage \
        "$ printf "Val=%d\\n" 5\n" \
-       "Val=5\n" 
+       "Val=5\n"
 
 #define ps_trivial_usage \
        ""
 #define ps_full_usage \
        "Report process status\n" \
        USAGE_SELINUX("\nOptions:\n\t-c\tshow SE Linux context", "\nThis version of ps accepts no options.")
+
 #define ps_example_usage \
        "$ ps\n" \
        "  PID  Uid      Gid State Command\n" \
 #define raid_start_full_usage \
        "Start MD_DEVICE, taking superblock from DISK_DEVICE.\n" \
        "Example: raid_start /dev/md0 /dev/sdb"
-       
+
 #define rdate_trivial_usage \
        "[-sp] HOST"
 #define rdate_full_usage \
        "pathname  ..."
 #define realpath_full_usage \
        "return the canonicalized absolute pathnames of given arguments\n\n"
-       
+
 #define reboot_trivial_usage \
        ""
 #define reboot_full_usage \
   #define USAGE_FANCY_SLEEP(a) a
   #define USAGE_NOT_FANCY_SLEEP(a)
 #else
-  #define USAGE_FANCY_SLEEP(a) 
+  #define USAGE_FANCY_SLEEP(a)
   #define USAGE_NOT_FANCY_SLEEP(a) a
 #endif
 
 #define sleep_trivial_usage \
-       USAGE_FANCY_SLEEP("[") "N" USAGE_FANCY_SLEEP("]...") 
+       USAGE_FANCY_SLEEP("[") "N" USAGE_FANCY_SLEEP("]...")
 #define sleep_full_usage \
        USAGE_NOT_FANCY_SLEEP("Pause for N seconds.") \
        USAGE_FANCY_SLEEP( \
 #ifdef CONFIG_FEATURE_ROTATE_LOGFILE
        #define USAGE_ROTATE_LOGFILE(a) a
 #else
-       #define USAGE_ROTATE_LOGFILE(a) 
+       #define USAGE_ROTATE_LOGFILE(a)
 #endif
 #ifdef CONFIG_FEATURE_REMOTE_LOG
   #define USAGE_REMOTE_LOG(a) a
        ) \
        USAGE_TFTP_BS( \
        "\t-b SIZE\tTransfer blocks of SIZE octets.\n" \
-       )       
+       )
 #define time_trivial_usage \
        "[OPTION]... COMMAND [ARGS...]"
 #define time_full_usage \
        "/bin/ls: /tmp/foo: No such file or directory\n" \
        "$ touch /tmp/foo\n" \
        "$ ls -l /tmp/foo\n" \
-       "-rw-rw-r--    1 andersen andersen        0 Apr 15 01:11 /tmp/foo\n" 
+       "-rw-rw-r--    1 andersen andersen        0 Apr 15 01:11 /tmp/foo\n"
 
 #define tr_trivial_usage \
        "[-cds] STRING1 [STRING2]"
        "\t-s\tsqueeze multiple output characters of STRING2 into one character"
 #define tr_example_usage \
        "$ echo "gdkkn vnqkc" | tr [a-y] [b-z]\n" \
-       "hello world\n" 
+       "hello world\n"
 
 #define traceroute_trivial_usage \
        "[-dnrv] [-m max_ttl] [-p port#] [-q nqueries]\n\
        "\t-v\tprint the operating system version"
 #define uname_example_usage \
        "$ uname -a\n" \
-       "Linux debian 2.2.15pre13 #5 Tue Mar 14 16:03:50 MST 2000 i686 unknown\n" 
+       "Linux debian 2.2.15pre13 #5 Tue Mar 14 16:03:50 MST 2000 i686 unknown\n"
 
 #define uncompress_trivial_usage \
        "[-c] [-f] [ name ... ]"
        "Options:\n" \
        "\t-c\textract to stdout\n" \
        "\t-f\tforce overwrite an existing file\n"
-       
+
 #define uniq_trivial_usage \
        "[OPTION]... [INPUT [OUTPUT]]"
 #define uniq_full_usage \
        "Display the time since the last boot."
 #define uptime_example_usage \
        "$ uptime\n" \
-       "  1:55pm  up  2:30, load average: 0.09, 0.04, 0.00\n" 
+       "  1:55pm  up  2:30, load average: 0.09, 0.04, 0.00\n"
 
 #define usleep_trivial_usage \
-       "N" 
+       "N"
 #define usleep_full_usage \
        "Pause for N microseconds."
 #define usleep_example_usage \
 #define uudecode_full_usage \
        "Uudecode a file that is uuencoded.\n\n" \
        "Options:\n" \
-       "\t-o FILE\tdirect output to FILE" 
+       "\t-o FILE\tdirect output to FILE"
 #define uudecode_example_usage \
        "$ uudecode -o busybox busybox.uu\n" \
        "$ ls -l busybox\n" \
-       "-rwxr-xr-x   1 ams      ams        245264 Jun  7 21:35 busybox\n" 
+       "-rwxr-xr-x   1 ams      ams        245264 Jun  7 21:35 busybox\n"
 
 #define uuencode_trivial_usage \
        "[OPTION] [INFILE] REMOTEFILE"
 "       set_flag        [interface-name] [flag-num]       [0 | 1] \n" \
 "       set_egress_map  [vlan-name]      [skb_priority]   [vlan_qos] \n" \
 "       set_ingress_map [vlan-name]      [skb_priority]   [vlan_qos] \n" \
-"       set_name_type   [name-type] \n" 
+"       set_name_type   [name-type] \n"
 
 #define vi_trivial_usage \
        "[OPTION] [FILE]..."
 #define vi_full_usage \
        "edit FILE.\n\n" \
        "Options:\n" \
-       "\t-R\tRead-only- do not write to the file." 
+       "\t-R\tRead-only- do not write to the file."
 
 #define vlock_trivial_usage \
        "[OPTIONS]"
 #define watch_full_usage \
        "Executes a program periodically.\n" \
        "Options:\n" \
-       "\t-n\tLoop period in seconds - default is 2." 
+       "\t-n\tLoop period in seconds - default is 2."
 #define watch_example_usage \
        "$ watch date\n" \
        "Mon Dec 17 10:31:40 GMT 2000\n" \
        "Mon Dec 17 10:31:42 GMT 2000\n" \
-       "Mon Dec 17 10:31:44 GMT 2000" 
+       "Mon Dec 17 10:31:44 GMT 2000"
 
 #define watchdog_trivial_usage \
        "[-t <seconds>] DEV"
        "\t-w\tprint the word counts"
 #define wc_example_usage \
        "$ wc /etc/passwd\n" \
-       "     31      46    1365 /etc/passwd\n" 
+       "     31      46    1365 /etc/passwd\n"
 
 #define wget_trivial_usage \
        "[-c|--continue] [-q|--quiet] [-O|--output-document file]\n\t[--header 'header: value'] [-Y|--proxy on/off] [-P DIR] url"
        "\t-t\tPrint the command line on stderr before executing it."
 #define xargs_example_usage \
        "$ ls | xargs gzip\n" \
-       "$ find . -name '*.c' -print | xargs rm\n" 
+       "$ find . -name '*.c' -print | xargs rm\n"
 
 #define yes_trivial_usage \
        "[OPTION]... [STRING]..."