diff options
author | Denis Vlasenko | 2007-11-18 05:36:50 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-11-18 05:36:50 +0000 |
commit | fbe5f39f0fe0439678581fdad153f1df437f395d (patch) | |
tree | c7635188b580014e3fe416025bcaaa88e768c221 /include | |
parent | 16aec39ebeb2246b0a0d335d5f02f6e1ebca67d1 (diff) | |
download | busybox-fbe5f39f0fe0439678581fdad153f1df437f395d.zip busybox-fbe5f39f0fe0439678581fdad153f1df437f395d.tar.gz |
hexdump: add hd alias, add -R option
Diffstat (limited to 'include')
-rw-r--r-- | include/applets.h | 1 | ||||
-rw-r--r-- | include/usage.h | 33 |
2 files changed, 21 insertions, 13 deletions
diff --git a/include/applets.h b/include/applets.h index 587ccbf..f188232 100644 --- a/include/applets.h +++ b/include/applets.h @@ -171,6 +171,7 @@ USE_GREP(APPLET(grep, _BB_DIR_BIN, _BB_SUID_NEVER)) USE_GUNZIP(APPLET(gunzip, _BB_DIR_BIN, _BB_SUID_NEVER)) USE_GZIP(APPLET(gzip, _BB_DIR_BIN, _BB_SUID_NEVER)) USE_HALT(APPLET(halt, _BB_DIR_SBIN, _BB_SUID_NEVER)) +USE_HD(APPLET_ODDNAME(hd, hexdump, _BB_DIR_USR_BIN, _BB_SUID_NEVER, hd)) USE_HDPARM(APPLET(hdparm, _BB_DIR_SBIN, _BB_SUID_NEVER)) USE_HEAD(APPLET(head, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) USE_HEXDUMP(APPLET_NOEXEC(hexdump, hexdump, _BB_DIR_USR_BIN, _BB_SUID_NEVER, hexdump)) diff --git a/include/usage.h b/include/usage.h index 592316a..d0eecdb 100644 --- a/include/usage.h +++ b/include/usage.h @@ -1384,21 +1384,28 @@ "daemon:x:1:1:daemon:/usr/sbin:/bin/sh\n" #define hexdump_trivial_usage \ - "[-[bcCdefnosvx]] [OPTION] FILE" + "[-bcCdefnosvx" USE_FEATURE_HEXDUMP_REVERSE("R") "] FILE..." #define hexdump_full_usage \ "Display file(s) or standard input in a user specified format" \ - "\n\nOptions:\n" \ - " -b One-byte octal display\n" \ - " -c One-byte character display\n" \ - " -C Canonical hex+ASCII, 16 bytes per line\n" \ - " -d Two-byte decimal display\n" \ - " -e FORMAT STRING\n" \ - " -f FORMAT FILE\n" \ - " -n LENGTH Interpret only LENGTH bytes of input\n" \ - " -o Two-byte octal display\n" \ - " -s OFFSET Skip OFFSET bytes\n" \ - " -v Display all input data\n" \ - " -x Two-byte hexadecimal display" + "\n\nOptions:" \ + "\n -b One-byte octal display" \ + "\n -c One-byte character display" \ + "\n -C Canonical hex+ASCII, 16 bytes per line" \ + "\n -d Two-byte decimal display" \ + "\n -e FORMAT STRING" \ + "\n -f FORMAT FILE" \ + "\n -n LENGTH Interpret only LENGTH bytes of input" \ + "\n -o Two-byte octal display" \ + "\n -s OFFSET Skip OFFSET bytes" \ + "\n -v Display all input data" \ + "\n -x Two-byte hexadecimal display" \ + USE_FEATURE_HEXDUMP_REVERSE( \ + "\n -R Reverse of 'hexdump -Cv'") \ + +#define hd_trivial_usage \ + "FILE..." +#define hd_full_usage \ + "hd is an alias for hexdump -C" #define hostid_trivial_usage \ "" |