diff options
| author | David M. Syzdek <david@syzdek.net> | 2022-03-10 15:41:01 -0900 |
|---|---|---|
| committer | David M. Syzdek <david@syzdek.net> | 2022-03-10 15:41:01 -0900 |
| commit | f700055e599f59d13013dfbccea71e2618f508bf (patch) | |
| tree | 323f79d210cd50717c8500326383a5b6809bc28e | |
| parent | 2590625e87ece15972e8912e9c358598d5ba376a (diff) | |
| download | tinyrad-f700055e599f59d13013dfbccea71e2618f508bf.tar.gz tinyrad-f700055e599f59d13013dfbccea71e2618f508bf.tar.bz2 tinyrad-f700055e599f59d13013dfbccea71e2618f508bf.tar.xz tinyrad-f700055e599f59d13013dfbccea71e2618f508bf.zip | |
tinyrad-dict: standardizing --dictionary-dump option
| -rw-r--r-- | src/tinyrad-dict.c | 4 | ||||
| -rwxr-xr-x | tests/test-dict-defaults.sh | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/tinyrad-dict.c b/src/tinyrad-dict.c index 6872911..2e392d0 100644 --- a/src/tinyrad-dict.c +++ b/src/tinyrad-dict.c | |||
| @@ -106,7 +106,7 @@ int main(int argc, char * argv[]) | |||
| 106 | {"version", no_argument, NULL, 'V' }, | 106 | {"version", no_argument, NULL, 'V' }, |
| 107 | {"verbose", no_argument, NULL, 'v' }, | 107 | {"verbose", no_argument, NULL, 'v' }, |
| 108 | {"defaults", no_argument, NULL, 2 }, | 108 | {"defaults", no_argument, NULL, 2 }, |
| 109 | {"dump", no_argument, NULL, 1 }, | 109 | {"dictionary-dump", no_argument, NULL, 1 }, |
| 110 | { NULL, 0, NULL, 0 } | 110 | { NULL, 0, NULL, 0 } |
| 111 | }; | 111 | }; |
| 112 | 112 | ||
| @@ -260,7 +260,7 @@ void my_usage(void) | |||
| 260 | printf(" -V, --version print version number and exit\n"); | 260 | printf(" -V, --version print version number and exit\n"); |
| 261 | printf(" -v, --verbose print verbose messages\n"); | 261 | printf(" -v, --verbose print verbose messages\n"); |
| 262 | printf(" --defaults load default dictionaries\n"); | 262 | printf(" --defaults load default dictionaries\n"); |
| 263 | printf(" --dump print imported dictionaries\n"); | 263 | printf(" --dictionary-dump print imported dictionaries\n"); |
| 264 | printf("\n"); | 264 | printf("\n"); |
| 265 | return; | 265 | return; |
| 266 | } | 266 | } |
diff --git a/tests/test-dict-defaults.sh b/tests/test-dict-defaults.sh index 2ec06d4..d08ea58 100755 --- a/tests/test-dict-defaults.sh +++ b/tests/test-dict-defaults.sh | |||
| @@ -34,12 +34,12 @@ CODE=0 | |||
| 34 | 34 | ||
| 35 | test -x src/tinyrad-dict || exit 77 | 35 | test -x src/tinyrad-dict || exit 77 |
| 36 | 36 | ||
| 37 | ./src/tinyrad-dict --dump \ | 37 | ./src/tinyrad-dict --dictionary-dump \ |
| 38 | --defaults \ | 38 | --defaults \ |
| 39 | 1> /tmp/tinyrad-dict-defaults1.$$ \ | 39 | 1> /tmp/tinyrad-dict-defaults1.$$ \ |
| 40 | 2> /dev/null | 40 | 2> /dev/null |
| 41 | 41 | ||
| 42 | ./src/tinyrad-dict --dump \ | 42 | ./src/tinyrad-dict --dictionary-dump \ |
| 43 | -D /tmp/tinyrad-dict-defaults1.$$ \ | 43 | -D /tmp/tinyrad-dict-defaults1.$$ \ |
| 44 | 1> /tmp/tinyrad-dict-defaults2.$$ \ | 44 | 1> /tmp/tinyrad-dict-defaults2.$$ \ |
| 45 | 2> /dev/null | 45 | 2> /dev/null |
