Skip to content

Commit

Permalink
cli: accept both -d and --debug
Browse files Browse the repository at this point in the history
  • Loading branch information
rfjakob committed Apr 8, 2024
1 parent 4c90316 commit acda7fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion MANPAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ removed in earlyoom v1.2, ignored for compatibility
#### -i
removed in earlyoom v1.7, ignored for compatibility

#### -d
#### -d, --debug
enable debugging messages

#### -v
Expand Down
3 changes: 2 additions & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ int main(int argc, char* argv[])
{ "sort-by-rss", no_argument, NULL, LONG_OPT_SORT_BY_RSS },
{ "syslog", no_argument, NULL, LONG_OPT_USE_SYSLOG },
{ "help", no_argument, NULL, 'h' },
{ "debug", no_argument, NULL, 'd' },
{ 0, 0, NULL, 0 } /* end-of-array marker */
};
bool have_m = 0, have_M = 0, have_s = 0, have_S = 0;
Expand Down Expand Up @@ -271,7 +272,7 @@ int main(int argc, char* argv[])
" -n enable d-bus notifications\n"
" -N /PATH/TO/SCRIPT call script after oom kill\n"
" -g kill all processes within a process group\n"
" -d enable debugging messages\n"
" -d, --debug enable debugging messages\n"
" -v print version information and exit\n"
" -r INTERVAL memory report interval in seconds (default 1), set\n"
" to 0 to disable completely\n"
Expand Down

0 comments on commit acda7fb

Please sign in to comment.