Add some options on Windows

pull/1044/head
nicolargo 2017-02-21 16:33:06 +01:00
parent 9cee73212a
commit 3bb1ced681
1 changed files with 6 additions and 4 deletions

View File

@ -227,11 +227,13 @@ Start the client browser (browser mode):\n\
dest='webserver', help='run Glances in web server mode (bottle needed)') dest='webserver', help='run Glances in web server mode (bottle needed)')
parser.add_argument('--cached-time', default=self.cached_time, type=int, 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)) 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, if not WINDOWS:
dest='open_web_browser', help='try to open the Web UI in the default Web browser') 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 # Display options
parser.add_argument('-q', '--quiet', default=False, action='store_true', if not WINDOWS:
dest='quiet', help='do not display the curses interface') 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, parser.add_argument('-f', '--process-filter', default=None, type=str,
dest='process_filter', help='set the process filter pattern (regular expression)') 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=False,