diff options
author | Alice Ferrazzi <alicef@gentoo.org> | 2017-06-16 14:05:13 +0900 |
---|---|---|
committer | Alice Ferrazzi <alicef@gentoo.org> | 2017-06-16 14:05:13 +0900 |
commit | fb0de7f13cf0b0c0e7c0b1ac854480ce4694c4cf (patch) | |
tree | 739503d64994a3beda7897413c07ad3468a19945 /elivepatch_client/client | |
parent | moved back to argparse and configparse (diff) | |
download | elivepatch-fb0de7f13cf0b0c0e7c0b1ac854480ce4694c4cf.tar.gz elivepatch-fb0de7f13cf0b0c0e7c0b1ac854480ce4694c4cf.tar.bz2 elivepatch-fb0de7f13cf0b0c0e7c0b1ac854480ce4694c4cf.zip |
fixed the default option to /proc/config.gz
Diffstat (limited to 'elivepatch_client/client')
-rw-r--r-- | elivepatch_client/client/argsparser.py | 2 | ||||
-rw-r--r-- | elivepatch_client/client/cli.py | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/elivepatch_client/client/argsparser.py b/elivepatch_client/client/argsparser.py index 276667b..fda5a74 100644 --- a/elivepatch_client/client/argsparser.py +++ b/elivepatch_client/client/argsparser.py @@ -17,7 +17,7 @@ class ArgsParser(object): help="Specify config file", metavar="FILE") args, remaining_argv = conf_parser.parse_known_args() defaults = { - "default1" : "foo", + "config" : "/proc/config.gz", } if args.conf_file: config = ConfigParser.SafeConfigParser() diff --git a/elivepatch_client/client/cli.py b/elivepatch_client/client/cli.py index 02eb546..0ad0bb0 100644 --- a/elivepatch_client/client/cli.py +++ b/elivepatch_client/client/cli.py @@ -27,8 +27,9 @@ class Main(object): """Performs the actions the user selected. """ - def __init__(self, arg): - print(arg.get_arg()) + def __init__(self, argparser): + config = argparser.get_arg() + print(config) def __call__(self): pass
\ No newline at end of file |