From 3bb1ced681fbff6b0282a1bbbea4c164399beed1 Mon Sep 17 00:00:00 2001 From: nicolargo Date: Tue, 21 Feb 2017 16:33:06 +0100 Subject: [PATCH] Add some options on Windows --- glances/main.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/glances/main.py b/glances/main.py index e8e3fb49..1fbd19e4 100644 --- a/glances/main.py +++ b/glances/main.py @@ -227,11 +227,13 @@ Start the client browser (browser mode):\n\ dest='webserver', help='run Glances in web server mode (bottle needed)') parser.add_argument('--cached-time', default=self.cached_time, type=int, dest='cached_time', help='set the server cache time [default: {} sec]'.format(self.cached_time)) - parser.add_argument('--open-web-browser', action='store_true', default=False, - dest='open_web_browser', help='try to open the Web UI in the default Web browser') + if not WINDOWS: + parser.add_argument('--open-web-browser', action='store_true', default=False, + dest='open_web_browser', help='try to open the Web UI in the default Web browser') # Display options - parser.add_argument('-q', '--quiet', default=False, action='store_true', - dest='quiet', help='do not display the curses interface') + if not WINDOWS: + parser.add_argument('-q', '--quiet', default=False, action='store_true', + 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,