summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicolargo <nicolas@nicolargo.com>2021-04-25 09:09:05 +0200
committernicolargo <nicolas@nicolargo.com>2021-04-25 09:09:05 +0200
commit5ffebc12d0fa1b19ef5ea1c2c14299e010612240 (patch)
tree4b1249bca160680f6a4cbd4318a6506bf7183883
parent85d5a6b4af31fcf785d5a61086cbbd166b40b07a (diff)
Process short name (without the path is the default behavor). Addd a new --process-long-name option to force the previous behavor
-rw-r--r--glances/main.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/glances/main.py b/glances/main.py
index 6a86e64f..9cb81f2b 100644
--- a/glances/main.py
+++ b/glances/main.py
@@ -228,8 +228,10 @@ Examples of use:
dest='quiet', help='do not display the curses interface')
parser.add_argument('-f', '--process-filter', default=None, type=str,
dest='process_filter', help='set the process filter pattern (regular expression)')
- parser.add_argument('--process-short-name', action='store_true', default=False,
+ parser.add_argument('--process-short-name', action='store_true', default=True,
dest='process_short_name', help='force short name for processes name')
+ parser.add_argument('--process-long-name', action='store_false', default=False,
+ dest='process_short_name', help='force long name for processes name')
parser.add_argument('--stdout', default=None,
dest='stdout', help='display stats to stdout, one stat per line (comma separated list of plugins/plugins.attribute)')
parser.add_argument('--stdout-csv', default=None,