[controller] save args in class
This commit is contained in:
parent
4e5f3c65a0
commit
bc390a21ea
1 changed files with 2 additions and 1 deletions
|
@ -156,7 +156,8 @@ class L2Controller(object):
|
||||||
parser = argparse.ArgumentParser(description='controller++')
|
parser = argparse.ArgumentParser(description='controller++')
|
||||||
parser.add_argument('--mode', help='Select mode / settings to use', choices=self.modes)
|
parser.add_argument('--mode', help='Select mode / settings to use', choices=self.modes)
|
||||||
parser.add_argument('--debug', help='Enable debug logging', action='store_true')
|
parser.add_argument('--debug', help='Enable debug logging', action='store_true')
|
||||||
args = parser.parse_args()
|
|
||||||
|
self.args = parser.parse_args()
|
||||||
self.mode = args.mode
|
self.mode = args.mode
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue