From fca6f0cc72265741ef04cc47b9504e81e8412620 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Fri, 16 Oct 2015 22:53:01 +0300 Subject: [PATCH] argparse: Description arg is optional. TODO: Make sure that in this case, good help message is printed to user. --- argparse/argparse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/argparse/argparse.py b/argparse/argparse.py index f89cc4ce..94f6b03f 100644 --- a/argparse/argparse.py +++ b/argparse/argparse.py @@ -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 = []