diff options
| author | David M. Syzdek <david@syzdek.net> | 2021-10-12 09:44:42 -0800 |
|---|---|---|
| committer | David M. Syzdek <david@syzdek.net> | 2021-10-12 09:44:42 -0800 |
| commit | c1b69847903c73b62df993989cacc84d97a64a55 (patch) | |
| tree | f30daa887776352384c2a920de430f89e3954b25 /src | |
| parent | beea29cb1691913b84ce055ce2cd8b0f4b07ff27 (diff) | |
| download | dmstools-c1b69847903c73b62df993989cacc84d97a64a55.tar.gz dmstools-c1b69847903c73b62df993989cacc84d97a64a55.tar.bz2 dmstools-c1b69847903c73b62df993989cacc84d97a64a55.tar.xz dmstools-c1b69847903c73b62df993989cacc84d97a64a55.zip | |
numconvert: replace -s option with -w
Diffstat (limited to 'src')
| -rw-r--r-- | src/numconvert.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/numconvert.c b/src/numconvert.c index f29f23d..4b1f196 100644 --- a/src/numconvert.c +++ b/src/numconvert.c | |||
| @@ -148,7 +148,7 @@ int main(int argc, char * argv[]) | |||
| 148 | const char * order; | 148 | const char * order; |
| 149 | 149 | ||
| 150 | // getopt options | 150 | // getopt options |
| 151 | static char short_opt[] = "AaBbDdf:hlOoqRrsVXx"; | 151 | static char short_opt[] = "AaBbDdf:hlOoqRrwVXx"; |
| 152 | static struct option long_opt[] = | 152 | static struct option long_opt[] = |
| 153 | { | 153 | { |
| 154 | {"help", no_argument, 0, 'h'}, | 154 | {"help", no_argument, 0, 'h'}, |
| @@ -230,7 +230,7 @@ int main(int argc, char * argv[]) | |||
| 230 | opt |= MY_OPT_LEBIT; | 230 | opt |= MY_OPT_LEBIT; |
| 231 | break; | 231 | break; |
| 232 | 232 | ||
| 233 | case 's': | 233 | case 'w': |
| 234 | opt = MY_TOGGLE(opt, MY_OPT_SPACE); | 234 | opt = MY_TOGGLE(opt, MY_OPT_SPACE); |
| 235 | break; | 235 | break; |
| 236 | 236 | ||
| @@ -521,7 +521,7 @@ void my_usage() | |||
| 521 | printf(" -q suppress column names\n"); | 521 | printf(" -q suppress column names\n"); |
| 522 | printf(" -R display binary in little endian byte order\n"); | 522 | printf(" -R display binary in little endian byte order\n"); |
| 523 | printf(" -r display binary in little endian bit nad byte order\n"); | 523 | printf(" -r display binary in little endian bit nad byte order\n"); |
| 524 | printf(" -s display binary value in 8 bit blocks\n"); | 524 | printf(" -w display output without spacing\n"); |
| 525 | printf(" -X enable hexadecimal output\n"); | 525 | printf(" -X enable hexadecimal output\n"); |
| 526 | printf(" -x assume hexadecimal notation for input\n"); | 526 | printf(" -x assume hexadecimal notation for input\n"); |
| 527 | printf(" -V, --version print version number and exit\n"); | 527 | printf(" -V, --version print version number and exit\n"); |
