equal
deleted
inserted
replaced
38 |
38 |
39 Throws a NotRootError if your uid is greater 0. |
39 Throws a NotRootError if your uid is greater 0. |
40 """ |
40 """ |
41 # Overwrite the parent CTor partly, we use the CliConfig class |
41 # Overwrite the parent CTor partly, we use the CliConfig class |
42 # and add some command line checks. |
42 # and add some command line checks. |
43 skip_some_checks = os.sys.argv[1] in ('cf', 'configure', 'h', 'help', |
43 skip_some_checks = os.sys.argv[1] in ('cf', 'configure', |
44 'v', 'version') |
44 'cs', 'configset') |
45 super(CliHandler, self).__init__(skip_some_checks) |
45 super(CliHandler, self).__init__(skip_some_checks) |
46 |
46 |
47 self._cfg = Cfg(self._cfg_fname) |
47 self._cfg = Cfg(self._cfg_fname) |
48 self._cfg.load() |
48 self._cfg.load() |
49 |
49 |