mirror of https://github.com/xzeldon/htop.git
Convert short version option to capital V
v is generally used for enabling verbose mode
This commit is contained in:
parent
f3b4e248a3
commit
f6b0efded5
|
@ -54,7 +54,7 @@ Do not use unicode but ASCII characters for graph meters
|
||||||
\fB\-M \-\-no-mouse\fR
|
\fB\-M \-\-no-mouse\fR
|
||||||
Disable support of mouse control
|
Disable support of mouse control
|
||||||
.TP
|
.TP
|
||||||
\fB\-v \-\-version
|
\fB\-V \-\-version
|
||||||
Output version information and exit
|
Output version information and exit
|
||||||
.TP
|
.TP
|
||||||
\fB\-t \-\-tree
|
\fB\-t \-\-tree
|
||||||
|
|
8
htop.c
8
htop.c
|
@ -46,7 +46,7 @@ static void printHelpFlag() {
|
||||||
"-u --user[=USERNAME] Show only processes for a given user (or $USER)\n"
|
"-u --user[=USERNAME] Show only processes for a given user (or $USER)\n"
|
||||||
"-U --no-unicode Do not use unicode but plain ASCII\n"
|
"-U --no-unicode Do not use unicode but plain ASCII\n"
|
||||||
"-p --pid=PID,[,PID,PID...] Show only the given PIDs\n"
|
"-p --pid=PID,[,PID,PID...] Show only the given PIDs\n"
|
||||||
"-v --version Print version info\n"
|
"-V --version Print version info\n"
|
||||||
"\n"
|
"\n"
|
||||||
"Long options may be passed with a single dash.\n\n"
|
"Long options may be passed with a single dash.\n\n"
|
||||||
"Press F1 inside htop for online help.\n"
|
"Press F1 inside htop for online help.\n"
|
||||||
|
@ -84,7 +84,7 @@ static CommandLineSettings parseArguments(int argc, char** argv) {
|
||||||
static struct option long_opts[] =
|
static struct option long_opts[] =
|
||||||
{
|
{
|
||||||
{"help", no_argument, 0, 'h'},
|
{"help", no_argument, 0, 'h'},
|
||||||
{"version", no_argument, 0, 'v'},
|
{"version", no_argument, 0, 'V'},
|
||||||
{"delay", required_argument, 0, 'd'},
|
{"delay", required_argument, 0, 'd'},
|
||||||
{"sort-key", required_argument, 0, 's'},
|
{"sort-key", required_argument, 0, 's'},
|
||||||
{"user", optional_argument, 0, 'u'},
|
{"user", optional_argument, 0, 'u'},
|
||||||
|
@ -99,13 +99,13 @@ static CommandLineSettings parseArguments(int argc, char** argv) {
|
||||||
|
|
||||||
int opt, opti=0;
|
int opt, opti=0;
|
||||||
/* Parse arguments */
|
/* Parse arguments */
|
||||||
while ((opt = getopt_long(argc, argv, "hvMCs:td:u::Up:", long_opts, &opti))) {
|
while ((opt = getopt_long(argc, argv, "hVMCs:td:u::Up:", long_opts, &opti))) {
|
||||||
if (opt == EOF) break;
|
if (opt == EOF) break;
|
||||||
switch (opt) {
|
switch (opt) {
|
||||||
case 'h':
|
case 'h':
|
||||||
printHelpFlag();
|
printHelpFlag();
|
||||||
break;
|
break;
|
||||||
case 'v':
|
case 'V':
|
||||||
printVersionFlag();
|
printVersionFlag();
|
||||||
break;
|
break;
|
||||||
case 's':
|
case 's':
|
||||||
|
|
Loading…
Reference in New Issue