mirror of https://github.com/xzeldon/htop.git
Change option '-m' to '-M' for consistency of cli
`-m` was added as short option for `--no-mouse`, this is inconsistence to the rest of the cli since otherwise the short options to disable a feature are capital letters. Therefore this commit renames the option to `-M`. This commit also documents the option in the man page.
This commit is contained in:
parent
40441dca8e
commit
1061bd719a
|
@ -51,6 +51,9 @@ Show only the processes of a given user
|
||||||
\fB\-U \-\-no-unicode\fR
|
\fB\-U \-\-no-unicode\fR
|
||||||
Do not use unicode but ASCII characters for graph meters
|
Do not use unicode but ASCII characters for graph meters
|
||||||
.TP
|
.TP
|
||||||
|
\fB\-M \-\-no-mouse\fR
|
||||||
|
Disable support of mouse control
|
||||||
|
.TP
|
||||||
\fB\-v \-\-version
|
\fB\-v \-\-version
|
||||||
Output version information and exit
|
Output version information and exit
|
||||||
.TP
|
.TP
|
||||||
|
|
8
htop.c
8
htop.c
|
@ -38,7 +38,7 @@ static void printHelpFlag() {
|
||||||
fputs("htop " VERSION "\n"
|
fputs("htop " VERSION "\n"
|
||||||
"Released under the GNU GPL.\n\n"
|
"Released under the GNU GPL.\n\n"
|
||||||
"-C --no-color Use a monochrome color scheme\n"
|
"-C --no-color Use a monochrome color scheme\n"
|
||||||
"-m --no-mouse Disable the mouse\n"
|
"-M --no-mouse Disable the mouse\n"
|
||||||
"-d --delay=DELAY Set the delay between updates, in tenths of seconds\n"
|
"-d --delay=DELAY Set the delay between updates, in tenths of seconds\n"
|
||||||
"-h --help Print this help screen\n"
|
"-h --help Print this help screen\n"
|
||||||
"-s --sort-key=COLUMN Sort by COLUMN (try --sort-key=help for a list)\n"
|
"-s --sort-key=COLUMN Sort by COLUMN (try --sort-key=help for a list)\n"
|
||||||
|
@ -90,7 +90,7 @@ static CommandLineSettings parseArguments(int argc, char** argv) {
|
||||||
{"user", optional_argument, 0, 'u'},
|
{"user", optional_argument, 0, 'u'},
|
||||||
{"no-color", no_argument, 0, 'C'},
|
{"no-color", no_argument, 0, 'C'},
|
||||||
{"no-colour", no_argument, 0, 'C'},
|
{"no-colour", no_argument, 0, 'C'},
|
||||||
{"no-mouse", no_argument, 0, 'm'},
|
{"no-mouse", no_argument, 0, 'M'},
|
||||||
{"no-unicode", no_argument, 0, 'U'},
|
{"no-unicode", no_argument, 0, 'U'},
|
||||||
{"tree", no_argument, 0, 't'},
|
{"tree", no_argument, 0, 't'},
|
||||||
{"pid", required_argument, 0, 'p'},
|
{"pid", required_argument, 0, 'p'},
|
||||||
|
@ -99,7 +99,7 @@ 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':
|
||||||
|
@ -150,7 +150,7 @@ static CommandLineSettings parseArguments(int argc, char** argv) {
|
||||||
case 'C':
|
case 'C':
|
||||||
flags.useColors = false;
|
flags.useColors = false;
|
||||||
break;
|
break;
|
||||||
case 'm':
|
case 'M':
|
||||||
flags.enableMouse = false;
|
flags.enableMouse = false;
|
||||||
break;
|
break;
|
||||||
case 'U':
|
case 'U':
|
||||||
|
|
Loading…
Reference in New Issue