diff options
author | nicolargo <nicolas@nicolargo.com> | 2018-02-11 11:02:16 +0100 |
---|---|---|
committer | nicolargo <nicolas@nicolargo.com> | 2018-02-11 11:02:16 +0100 |
commit | b091bdbb7bef1fa43c4be25df0b1e0b031901007 (patch) | |
tree | 25090342bbea5b7cb5331e4ef7079ca50054f964 /glances/main.py | |
parent | 0d029220dd4cc382590ad5f513832217f9ff9a1e (diff) |
Add a new output mode to stdout #1168
Diffstat (limited to 'glances/main.py')
-rw-r--r-- | glances/main.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/glances/main.py b/glances/main.py index eadd98d4..c2ebc35c 100644 --- a/glances/main.py +++ b/glances/main.py @@ -91,6 +91,9 @@ Examples of use: Start the client browser (browser mode): $ glances --browser + Display stats to stdout: + $ glances --stdout cpu.user,mem.used,load + Disable some plugins (any modes): $ glances --disable-plugin network,ports """ @@ -210,6 +213,8 @@ Examples of use: dest='process_filter', help='set the process filter pattern (regular expression)') parser.add_argument('--process-short-name', action='store_true', default=False, dest='process_short_name', help='force short name for processes name') + parser.add_argument('--stdout', default=None, + dest='stdout', help='display stats to stdout (comma separated list of plugins / plugins.attribute)') 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 (not available on Windows)') |