mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Add documentation of verbose mode.
This commit is contained in:
parent
a543fbd7ef
commit
ac77f2dbb9
3 changed files with 11 additions and 2 deletions
|
|
@ -23,7 +23,8 @@ _tio()
|
|||
-t --timestamp \
|
||||
-L --list-devices \
|
||||
-c --color \
|
||||
-h --help"
|
||||
-h --help" \
|
||||
-V --verbose \
|
||||
|
||||
# Complete the arguments to the options.
|
||||
case "${prev}" in
|
||||
|
|
@ -88,6 +89,10 @@ _tio()
|
|||
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
|
||||
return 0
|
||||
;;
|
||||
-V | --verbose)
|
||||
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
|
||||
return 0
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
|
|
|
|||
|
|
@ -76,6 +76,7 @@ void print_help(char *argv[])
|
|||
printf(" -c, --color <code> Colorize tio text\n");
|
||||
printf(" -v, --version Display version\n");
|
||||
printf(" -h, --help Display help\n");
|
||||
printf(" -V, --verbose Display extended configuration\n");
|
||||
printf("\n");
|
||||
printf("See the man page for more details.\n");
|
||||
printf("\n");
|
||||
|
|
@ -180,7 +181,7 @@ void options_parse(int argc, char *argv[])
|
|||
{"color", required_argument, 0, 'c'},
|
||||
{"version", no_argument, 0, 'v'},
|
||||
{"help", no_argument, 0, 'h'},
|
||||
{"V", no_argument, 0, 'V'},
|
||||
{"verbose", no_argument, 0, 'V'},
|
||||
{0, 0, 0, 0 }
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue