Rename --hex-mode to --hexadecimal

This commit is contained in:
Martin Lund 2022-07-03 00:47:18 +02:00
parent 1b91fd9f69
commit db88a9d664
2 changed files with 3 additions and 3 deletions

View file

@ -27,7 +27,7 @@ _tio()
-L --list-devices \
-c --color \
-S --socket \
-x --hex-mode \
-x --hexadecimal \
-v --version \
-h --help"
@ -102,7 +102,7 @@ _tio()
COMPREPLY=( $(compgen -W "unix: inet: inet6:" -- ${cur}) )
return 0
;;
-x | --hex-mode)
-x | --hexadecimal)
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
;;

View file

@ -199,7 +199,7 @@ void options_parse(int argc, char *argv[])
{"socket", required_argument, 0, 'S' },
{"map", required_argument, 0, 'm' },
{"color", required_argument, 0, 'c' },
{"hex-mode", no_argument, 0, 'x' },
{"hexadecimal", no_argument, 0, 'x' },
{"version", no_argument, 0, 'v' },
{"help", no_argument, 0, 'h' },
{0, 0, 0, 0 }