diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2013-11-01 07:15:14 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2013-11-01 07:15:14 -0600 |
commit | 8148ce2957824b783b7ec81919b891f220c0237f (patch) | |
tree | 87a3f75d9eb988361cac0d8bd35771e9268b85de /apps/nshlib/nsh_parse.c | |
parent | b6814d7a4a44f58992704e2b85502ccc5dd0e331 (diff) | |
download | nuttx-8148ce2957824b783b7ec81919b891f220c0237f.tar.gz nuttx-8148ce2957824b783b7ec81919b891f220c0237f.tar.bz2 nuttx-8148ce2957824b783b7ec81919b891f220c0237f.zip |
Add skip= and count= options to the NSH hexdump command. From Ken Pettit
Diffstat (limited to 'apps/nshlib/nsh_parse.c')
-rw-r--r-- | apps/nshlib/nsh_parse.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/nshlib/nsh_parse.c b/apps/nshlib/nsh_parse.c index b293f4983..a58d0b03a 100644 --- a/apps/nshlib/nsh_parse.c +++ b/apps/nshlib/nsh_parse.c @@ -245,7 +245,11 @@ static const struct cmdmap_s g_cmdmap[] = #if CONFIG_NFILE_DESCRIPTORS > 0 #ifndef CONFIG_NSH_DISABLE_HEXDUMP +#ifndef CONFIG_NSH_CMDOPT_HEXDUMP { "hexdump", cmd_hexdump, 2, 2, "<file or device>" }, +#else + { "hexdump", cmd_hexdump, 2, 4, "<file or device> [skip=<bytes>] [count=<bytes>]" }, +#endif #endif #endif |