Use doc string as argparse description

This commit is contained in:
Florian Festi 2016-03-08 09:33:45 +01:00
parent 89cab4a4aa
commit 3b69558905
1 changed files with 2 additions and 2 deletions

View File

@ -515,7 +515,7 @@ def argparseSections(s):
class Boxes:
def __init__(self):
self.argparser = ArgumentParser()
self.argparser = ArgumentParser(description=self.__doc__)
self.argparser.add_argument(
"--thickness", action="store", type=float, default=4.0,
help="thickness of the material")
@ -1182,7 +1182,7 @@ See --sy for format""")
##################################################
class DemoBox(Boxes):
"""A simple fully enclosed box showcasing different finger joints"""
def __init__(self):
Boxes.__init__(self)
self.buildArgParser("x", "y", "h")