From 4979245aa569154897e941867420a94740213689 Mon Sep 17 00:00:00 2001 From: Daniel Lange Date: Fri, 8 Jan 2021 21:34:30 +0100 Subject: Update help and man page for improved -t / -s options --- htop.1.in | 6 ++++-- htop.c | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/htop.1.in b/htop.1.in index 71f8b943..cd984789 100644 --- a/htop.1.in +++ b/htop.1.in @@ -42,7 +42,8 @@ Display a help message and exit Show only the given PIDs .TP \fB\-s \-\-sort\-key COLUMN\fR -Sort by this column (use \-\-sort\-key help for a column list) +Sort by this column (use \-\-sort\-key help for a column list). +This will force a list view unless you specify -t at the same time. .TP \fB\-u \-\-user=USERNAME\fR Show only the processes of a given user @@ -57,7 +58,8 @@ Disable support of mouse control Output version information and exit .TP \fB\-t \-\-tree -Show processes in tree view +Show processes in tree view. This can be used to force a tree view when +requesting a sort order with -s. .TP \fB\-H \-\-highlight-changes=DELAY\fR Highlight new and old processes diff --git a/htop.c b/htop.c index 97746175..1ff73c53 100644 --- a/htop.c +++ b/htop.c @@ -49,8 +49,8 @@ static void printHelpFlag(void) { "-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" - "-s --sort-key=COLUMN Sort by COLUMN (try --sort-key=help for a list)\n" - "-t --tree Show the tree view by default\n" + "-s --sort-key=COLUMN Sort by COLUMN in list view (try --sort-key=help for a list)\n" + "-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" -- cgit v1.2.3