From fbe5f39f0fe0439678581fdad153f1df437f395d Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sun, 18 Nov 2007 05:36:50 +0000 Subject: hexdump: add hd alias, add -R option --- include/applets.h | 1 + include/usage.h | 33 ++++++++++++++++++++------------- 2 files changed, 21 insertions(+), 13 deletions(-) (limited to 'include') diff --git a/include/applets.h b/include/applets.h index 587ccbf51..f188232c4 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 592316ace..d0eecdb4a 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 \ "" -- cgit v1.2.3