VirtualMailManager/cli/handler.py
branchv0.7.x
changeset 714 95252b15fffb
parent 711 2a75058fc064
child 727 695426b49de0
equal deleted inserted replaced
713:74ee0a62039c 714:95252b15fffb
    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