diff options
| author | David M. Syzdek <david@syzdek.net> | 2021-10-11 17:33:06 -0800 |
|---|---|---|
| committer | David M. Syzdek <david@syzdek.net> | 2021-10-11 17:33:06 -0800 |
| commit | 868dbe591b0d994b095a1ee7bec99606d41cb111 (patch) | |
| tree | c21e65db9e803fbf36987223bf8de386834b0db2 /src/numconvert.c | |
| parent | be4cec7dae9232faf560f054ba36cb8826c61e9f (diff) | |
| download | dmstools-868dbe591b0d994b095a1ee7bec99606d41cb111.tar.gz dmstools-868dbe591b0d994b095a1ee7bec99606d41cb111.tar.bz2 dmstools-868dbe591b0d994b095a1ee7bec99606d41cb111.tar.xz dmstools-868dbe591b0d994b095a1ee7bec99606d41cb111.zip | |
numconvert: toggling default option for -l
Diffstat (limited to '')
| -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 23669ee..b852194 100644 --- a/src/numconvert.c +++ b/src/numconvert.c | |||
| @@ -155,7 +155,7 @@ int main(int argc, char * argv[]) | |||
| 155 | {NULL, 0, 0, 0 } | 155 | {NULL, 0, 0, 0 } |
| 156 | }; | 156 | }; |
| 157 | 157 | ||
| 158 | opt = MY_OPT_SPACE; | 158 | opt = MY_OPT_SPACE | MY_OPT_LIMIT; |
| 159 | base = 0; | 159 | base = 0; |
| 160 | order = "abxod"; | 160 | order = "abxod"; |
| 161 | bases = 0; | 161 | bases = 0; |
| @@ -204,7 +204,7 @@ int main(int argc, char * argv[]) | |||
| 204 | return(0); | 204 | return(0); |
| 205 | 205 | ||
| 206 | case 'l': | 206 | case 'l': |
| 207 | opt |= MY_OPT_LIMIT; | 207 | opt = MY_TOGGLE(opt, MY_OPT_LIMIT); |
| 208 | break; | 208 | break; |
| 209 | 209 | ||
| 210 | case 'O': | 210 | case 'O': |
| @@ -472,7 +472,7 @@ void my_usage() | |||
| 472 | printf(" -d assume decimal notation for input\n"); | 472 | printf(" -d assume decimal notation for input\n"); |
| 473 | printf(" -f order order of output values (default: \"abxod\")\n"); | 473 | printf(" -f order order of output values (default: \"abxod\")\n"); |
| 474 | printf(" -h, --help print this help and exit\n"); | 474 | printf(" -h, --help print this help and exit\n"); |
| 475 | printf(" -l print minimum number of bytes in hex and binary\n"); | 475 | printf(" -l print output assuming 64 bit numbers instead of 32 bit numbers\n"); |
| 476 | printf(" -O enable octal output\n"); | 476 | printf(" -O enable octal output\n"); |
| 477 | printf(" -o assume octal notation for input\n"); | 477 | printf(" -o assume octal notation for input\n"); |
| 478 | printf(" -R display binary in little endian byte order\n"); | 478 | printf(" -R display binary in little endian byte order\n"); |
