39ae96c90151 — Robin Schroer 7 years ago
fix #1 -- fix argparse return types

Argparse decided to return lists instead of strings for options with
single values. Also version bump.
2 files changed, 4 insertions(+), 4 deletions(-)

M feed2maildir/__init__.py
M scripts/feed2maildir
M feed2maildir/__init__.py +1 -1
@@ 1,2 1,2 @@ 
-VERSION = '0.3.5.3'
+VERSION = '0.3.6'
 

          
M scripts/feed2maildir +3 -3
@@ 12,11 12,11 @@ from feed2maildir.reader import Reader
 def main():
     parser = argparse.ArgumentParser(description='Convert Feeds to a maildir',
                                      epilog='Feed2Maildir '+ VERSION)
-    parser.add_argument('-c', nargs=1, metavar='<file>',
+    parser.add_argument('-c', metavar='<file>',
                         help='override the config file location (~/.f2mrc)')
-    parser.add_argument('-d', nargs=1, metavar='<file>',
+    parser.add_argument('-d', metavar='<file>',
                         help='override the database file location (~/.f2mdb)')
-    parser.add_argument('-m', nargs=1, metavar='<dir>',
+    parser.add_argument('-m', metavar='<dir>',
                         help='override the maildir location (None)')
     parser.add_argument('-s', action='store_true',
                         help='strip HTML from the feed content')