Skip to content

Commit 0e62fc0

Browse files
committed
removed short option '-m' of --no-meters
1 parent 72a2679 commit 0e62fc0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

CommandLine.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ static void printHelpFlag(const char* name) {
5959
#ifdef HAVE_GETMOUSE
6060
printf("-M --no-mouse Disable the mouse\n");
6161
#endif
62-
printf("-m --no-meters Hide meters\n"
62+
printf(" --no-meters Hide meters\n"
6363
"-n --max-iterations=NUMBER Exit htop after NUMBER iterations/frame updates\n"
6464
"-p --pid=PID[,PID,PID...] Show only the given PIDs\n"
6565
" --readonly Disable all system and process changing features\n"
@@ -127,7 +127,7 @@ static CommandLineStatus parseArguments(int argc, char** argv, CommandLineSettin
127127
{"no-colour", no_argument, 0, 'C'},
128128
{"no-mouse", no_argument, 0, 'M'},
129129
{"no-unicode", no_argument, 0, 'U'},
130-
{"no-meters", no_argument, 0, 'm'},
130+
{"no-meters", no_argument, 0, 129},
131131
{"tree", no_argument, 0, 't'},
132132
{"pid", required_argument, 0, 'p'},
133133
{"filter", required_argument, 0, 'F'},
@@ -139,7 +139,7 @@ static CommandLineStatus parseArguments(int argc, char** argv, CommandLineSettin
139139

140140
int opt, opti = 0;
141141
/* Parse arguments */
142-
while ((opt = getopt_long(argc, argv, "hVMmCs:td:n:u::Up:F:H::", long_opts, &opti))) {
142+
while ((opt = getopt_long(argc, argv, "hVMCs:td:n:u::Up:F:H::", long_opts, &opti))) {
143143
if (opt == EOF)
144144
break;
145145

@@ -227,7 +227,7 @@ static CommandLineStatus parseArguments(int argc, char** argv, CommandLineSettin
227227
case 'U':
228228
flags->allowUnicode = false;
229229
break;
230-
case 'm':
230+
case 129:
231231
flags->hideMeters = true;
232232
break;
233233
case 't':

0 commit comments

Comments
 (0)