On Tuesday 05 June 2007 09:20:48 you wrote:
> Tito,
> 
> >> I just noticed that "hexdump --help" results in
> >>
> >> hexdump: invalid option -- -
> >> BusyBox v1.4.2 (2007-06-04 14:02:54 CEST) multi-call binary
> >>
> >> No help available.
> >>
> >> Other applets do have a usage text!
> >>
> >> CONFIG_SHOW_USAGE=y
> >> CONFIG_FEATURE_VERBOSE_USAGE=y
> >> # CONFIG_FEATURE_COMPRESS_USAGE is not set
> >>
> > 
> > Fixed in later versions.
> 
> Of cause it is! ;-)
> 
> And I suppose it's a trivial fix.
> But how could I backport it to busybox 1.4.2 ?
> 
> --
> STeven

Hi,
out of curiosity, did you try also hexdump -h?
You can try to fix it by adding this lines to busybox/include/usage.h
between  #define head_example_usage  and #define hostid_trivial_usage 

--------------------------------------------------------------------------------------------------
#define hexdump_trivial_usage \
       "[-[bcCdefnosvx]] [OPTION] 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"
----------------------------------------------------------------------------------------------------
Don't know if hexdump of 1.4.2 supports all of this options,
maybe you can check and eventually remove some lines.

Hope this helps.

Ciao,
Tito

_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to