diff options
author | Daniel <quite@hack.org> | 2012-03-14 16:17:18 +0100 |
---|---|---|
committer | Daniel <quite@hack.org> | 2012-03-15 11:04:36 +0100 |
commit | 0307c5a82682b453dc69c1a5860e2d9c2333eac8 (patch) | |
tree | 32aadecd7898f762f29ee480505534724779dc00 /alot | |
parent | 3bbcbc1d64dd74c2e424423615e5b9652fa08fa4 (diff) |
No default value for config file given on command-line.
Diffstat (limited to 'alot')
-rwxr-xr-x | alot/init.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alot/init.py b/alot/init.py index 03e6b8ce..7ee22d3d 100755 --- a/alot/init.py +++ b/alot/init.py @@ -84,7 +84,7 @@ class Options(usage.Options): debuglogstring.coerceDoc = "Must be one of debug,info,warning or error" optParameters = [ - ['config', 'c', '~/.config/alot/config', 'config file'], + ['config', 'c', None, 'config file'], ['notmuch-config', 'n', '~/.notmuch-config', 'notmuch config'], ['colour-mode', 'C', None, 'terminal colour mode', colourint], ['mailindex-path', 'p', None, 'path to notmuch index'], @@ -133,7 +133,7 @@ def main(): if args['config']: expanded_path = os.path.expanduser(args['config']) if not os.path.exists(expanded_path): - sys.exit('File %s does not exist' % expanded_path) + sys.exit('Explicitly given config file "%s" does not exist. Goodbye for now.' % expanded_path) configfiles.insert(0, expanded_path) # locate notmuch config |