only use one -letter as flag (3 characters) when use choice list; sys.argv[2:] issue
svn: r20749
This commit is contained in:
parent
01676a58a4
commit
8a1995be75
@ -569,7 +569,7 @@ def main():
|
||||
|
||||
parser = ArgumentParser( description='This program validates a PO file for GRAMPS.')
|
||||
|
||||
parser.add_argument("-s", "--summary", dest="summary",
|
||||
parser.add_argument("-s", dest="summary",
|
||||
choices=[file for file in os.listdir('.') if file.endswith('.po')],
|
||||
default=False, help="only give the summary")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user