From 7fd6153720746edff4af900dc9c3579d3cde6e32 Mon Sep 17 00:00:00 2001 From: "louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13" Date: Tue, 9 Nov 2010 20:37:39 +0000 Subject: fix some little issues. Rename gui to core, use logging lib instead of the custom debug option. Add a -d option --- src/config.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'src/config.py') diff --git a/src/config.py b/src/config.py index 287c47ec..a3f03849 100644 --- a/src/config.py +++ b/src/config.py @@ -137,13 +137,8 @@ if not path.isfile(CONFIG_PATH+'poezio.cfg'): parser = OptionParser() parser.add_option("-f", "--file", dest="filename", default=CONFIG_PATH+'poezio.cfg', - help="the config file you want to use", metavar="CONFIG_FILE") + help="The config file you want to use", metavar="CONFIG_FILE") +parser.add_option("-d", "--debug", dest="debug", + help="The file where debug will be written", metavar="DEBUG_FILE") (options, args) = parser.parse_args() config = Config(options.filename) - -if __name__ == '__main__': - # tests - import sys - (dummy, filename, section, option, value) = sys.argv - conf = Config(sys.argv[1]) - conf.write_in_file(section, option, value) -- cgit v1.2.3