argparse: Description arg is optional.

TODO: Make sure that in this case, good help message is printed to user.
pull/46/head
Paul Sokolovsky 2015-10-16 22:53:01 +03:00
rodzic b0f8d85a62
commit fca6f0cc72
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -61,7 +61,7 @@ class _Arg:
assert False
class ArgumentParser:
def __init__(self, *, description):
def __init__(self, *, description=""):
self.description = description
self.opt = []
self.pos = []