diff --git a/NEWS b/NEWS index 7d32c531..cb227154 100644 --- a/NEWS +++ b/NEWS @@ -22,6 +22,7 @@ Bugs corrected: * NameError: name 'mode' is not defined in case of interrupt shortly after starting the server mode #1175 * Crash on startup: KeyError: 'hz_actual_raw' on Raspbian 9.1 #1170 * Add missing mount-observe and system-observe interfaces #1179 + * OS specific arguments should be documented and reported #1180 Backward-incompatible changes: diff --git a/docs/cmds.rst b/docs/cmds.rst index 37fd2619..84916175 100644 --- a/docs/cmds.rst +++ b/docs/cmds.rst @@ -288,11 +288,11 @@ Command-Line Options .. option:: --hide-kernel-threads - hide kernel threads in process list + hide kernel threads in process list (not available on Windows) .. option:: --tree - display processes as a tree + display processes as a tree (Linux only) .. option:: -b, --byte diff --git a/docs/man/glances.1 b/docs/man/glances.1 index 1adb7d87..916ea733 100644 --- a/docs/man/glances.1 +++ b/docs/man/glances.1 @@ -1,6 +1,6 @@ .\" Man page generated from reStructuredText. . -.TH "GLANCES" "1" "Oct 15, 2017" "3.0_DEV" "Glances" +.TH "GLANCES" "1" "Nov 03, 2017" "3.0_DEV" "Glances" .SH NAME glances \- An eye on your system . @@ -173,6 +173,11 @@ disable Wifi module .UNINDENT .INDENT 0.0 .TP +.B \-\-light, \-\-enable\-light +light mode for Curses UI (disable all but top menu) +.UNINDENT +.INDENT 0.0 +.TP .B \-0, \-\-disable\-irix task\(aqs CPU usage will be divided by the total number of CPUs .UNINDENT @@ -394,12 +399,12 @@ force short name for processes name .INDENT 0.0 .TP .B \-\-hide\-kernel\-threads -hide kernel threads in process list +hide kernel threads in process list (not available on Windows) .UNINDENT .INDENT 0.0 .TP .B \-\-tree -display processes as a tree +display processes as a tree (Linux only) .UNINDENT .INDENT 0.0 .TP diff --git a/glances/main.py b/glances/main.py index 6afacb5b..38ef7c86 100644 --- a/glances/main.py +++ b/glances/main.py @@ -32,7 +32,6 @@ from glances.logger import logger class GlancesMain(object): - """Main class to manage Glances instance.""" # Default stats' refresh time is 3 seconds @@ -254,10 +253,10 @@ Examples of use: dest='process_short_name', help='force short name for processes name') if not WINDOWS: parser.add_argument('--hide-kernel-threads', action='store_true', default=False, - dest='no_kernel_threads', help='hide kernel threads in process list') + dest='no_kernel_threads', help='hide kernel threads in process list (not available on Windows)') if LINUX: parser.add_argument('--tree', action='store_true', default=False, - dest='process_tree', help='display processes as a tree') + dest='process_tree', help='display processes as a tree (Linux only)') parser.add_argument('-b', '--byte', action='store_true', default=False, dest='byte', help='display network rate in byte per second') parser.add_argument('--diskio-show-ramfs', action='store_true', default=False,