[controller] save args in class

This commit is contained in:
Nico Schottelius 2019-02-23 18:26:34 +01:00
parent 4e5f3c65a0
commit bc390a21ea

View file

@ -156,7 +156,8 @@ class L2Controller(object):
parser = argparse.ArgumentParser(description='controller++')
parser.add_argument('--mode', help='Select mode / settings to use', choices=self.modes)
parser.add_argument('--debug', help='Enable debug logging', action='store_true')
args = parser.parse_args()
self.args = parser.parse_args()
self.mode = args.mode