summaryrefslogtreecommitdiffstats
path: root/htop.c
diff options
context:
space:
mode:
authorNathan Scott <nathans@redhat.com>2021-03-22 14:49:07 +1100
committerNathan Scott <nathans@redhat.com>2021-03-22 17:16:40 +1100
commit253ff23f9e3a26c9575758fd1849b457c5d4d635 (patch)
treeb756365fd3c197fc568b9ff68653bda0d2b0e0f3 /htop.c
parentd56d23d91adf3fad512e5311fcdd0ca129e820c7 (diff)
Use a platform-specific routine for long option usage
Related to https://github.com/htop-dev/htop/pull/564
Diffstat (limited to 'htop.c')
-rw-r--r--htop.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/htop.c b/htop.c
index 15eb2a4b..656aa086 100644
--- a/htop.c
+++ b/htop.c
@@ -48,7 +48,6 @@ static void printHelpFlag(const char* name) {
"-d --delay=DELAY Set the delay between updates, in tenths of seconds\n"
"-F --filter=FILTER Show only the commands matching the given filter\n"
"-h --help Print this help screen\n"
- PLATFORM_LONG_OPTIONS_USAGE
"-H --highlight-changes[=DELAY] Highlight new and old processes\n"
"-M --no-mouse Disable the mouse\n"
"-p --pid=PID[,PID,PID...] Show only the given PIDs\n"
@@ -56,12 +55,12 @@ static void printHelpFlag(const char* name) {
"-t --tree Show the tree view (can be combined with -s)\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"
- "-V --version Print version info\n"
- "\n"
+ "-V --version Print version info\n", name);
+ Platform_longOptionsUsage(name);
+ printf("\n"
"Long options may be passed with a single dash.\n\n"
"Press F1 inside %s for online help.\n"
- "See 'man %s' for more information.\n",
- name, name, name);
+ "See 'man %s' for more information.\n", name, name);
}
// ----------------------------------------

© 2014-2024 Faster IT GmbH | imprint | privacy policy