diff options
Diffstat (limited to 'glances/main.py')
-rw-r--r-- | glances/main.py | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/glances/main.py b/glances/main.py index 61a1273f..27d0c982 100644 --- a/glances/main.py +++ b/glances/main.py @@ -2,7 +2,7 @@ # # This file is part of Glances. # -# SPDX-FileCopyrightText: 2023 Nicolas Hennion <nicolas@nicolargo.com> +# SPDX-FileCopyrightText: 2024 Nicolas Hennion <nicolas@nicolargo.com> # # SPDX-License-Identifier: LGPL-3.0-only # @@ -175,7 +175,13 @@ Examples of use: help='task\'s cpu usage will be divided by the total number of CPUs', ) parser.add_argument( - '-1', '--percpu', action='store_true', default=False, dest='percpu', help='start Glances in per CPU mode' + '-1', + '--percpu', + '--per-cpu', + action='store_true', + default=False, + dest='percpu', + help='start Glances in per CPU mode', ) parser.add_argument( '-2', @@ -376,7 +382,7 @@ Examples of use: action='store_true', default=False, dest='webserver', - help='run Glances in web server mode (FastAPI, Uvicorn, Jinja2 and OrJsonLib needed)', + help='run Glances in web server mode (FastAPI, Uvicorn, Jinja2 libs needed)', ) parser.add_argument( '--cached-time', @@ -531,9 +537,10 @@ Examples of use: help='disable unicode characters in the curses interface', ) parser.add_argument( - '--theme-white', + '--hide-public-info', + action='store_true', default=False, - help='(deprecated, no effect)', + help='hide public information (like public IP)', ) # Globals options parser.add_argument( @@ -611,6 +618,10 @@ Examples of use: if getattr(args, 'enable_processlist', False): enable(args, 'processcount') + # Set a default export_process_filter (with all process) when using the stdout mode + if getattr(args, 'stdout', True) and args.process_filter is None: + setattr(args, 'export_process_filter', '.*') + def init_client_server(self, args): """Init Glances client/server mode.""" |