From bc390a21ea93af012c37b61e67fc783cc8a3950a Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sat, 23 Feb 2019 18:26:34 +0100 Subject: [PATCH] [controller] save args in class --- p4app/controller.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/p4app/controller.py b/p4app/controller.py index 35f5724..033d773 100644 --- a/p4app/controller.py +++ b/p4app/controller.py @@ -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