mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Remove verbose option
Remove the command-line verbose option but let the ctrl-t c feature print some of the verbose information (active config path/section).
This commit is contained in:
parent
11df828f68
commit
28c880cdab
7 changed files with 13 additions and 29 deletions
|
|
@ -53,7 +53,6 @@ struct option_t option =
|
|||
.log_filename = "",
|
||||
.map = "",
|
||||
.color = -1,
|
||||
.debug = false,
|
||||
};
|
||||
|
||||
void print_help(char *argv[])
|
||||
|
|
@ -76,7 +75,6 @@ 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 Enable verbose output\n");
|
||||
printf("\n");
|
||||
printf("See the man page for more details.\n");
|
||||
printf("\n");
|
||||
|
|
@ -135,7 +133,6 @@ enum timestamp_t timestamp_option_parse(const char *arg)
|
|||
|
||||
void options_print()
|
||||
{
|
||||
tio_printf("Configuration:");
|
||||
tio_printf(" TTY device: %s", option.tty_device);
|
||||
tio_printf(" Baudrate: %u", option.baudrate);
|
||||
tio_printf(" Databits: %d", option.databits);
|
||||
|
|
@ -181,7 +178,6 @@ void options_parse(int argc, char *argv[])
|
|||
{"color", required_argument, 0, 'c'},
|
||||
{"version", no_argument, 0, 'v'},
|
||||
{"help", no_argument, 0, 'h'},
|
||||
{"verbose", no_argument, 0, 'V'},
|
||||
{0, 0, 0, 0 }
|
||||
};
|
||||
|
||||
|
|
@ -189,7 +185,7 @@ void options_parse(int argc, char *argv[])
|
|||
int option_index = 0;
|
||||
|
||||
/* Parse argument using getopt_long */
|
||||
c = getopt_long(argc, argv, "b:d:f:s:p:o:net::Ll::m:c:vhV", long_options, &option_index);
|
||||
c = getopt_long(argc, argv, "b:d:f:s:p:o:net::Ll::m:c:vh", long_options, &option_index);
|
||||
|
||||
/* Detect the end of the options */
|
||||
if (c == -1)
|
||||
|
|
@ -290,10 +286,6 @@ void options_parse(int argc, char *argv[])
|
|||
exit(EXIT_SUCCESS);
|
||||
break;
|
||||
|
||||
case 'V':
|
||||
option.debug = true;
|
||||
break;
|
||||
|
||||
case '?':
|
||||
/* getopt_long already printed an error message */
|
||||
exit(EXIT_FAILURE);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue