summaryrefslogtreecommitdiff
path: root/test/CheckManpage.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/CheckManpage.py')
-rwxr-xr-xtest/CheckManpage.py21
1 files changed, 3 insertions, 18 deletions
diff --git a/test/CheckManpage.py b/test/CheckManpage.py
index e519a00a..1795b77e 100755
--- a/test/CheckManpage.py
+++ b/test/CheckManpage.py
@@ -19,24 +19,9 @@ class CheckManpage (CheckOptions):
self.source_type = 'manpage'
if __name__ == "__main__":
- def getargs():
- parser = argparse.ArgumentParser(prog='CheckManpage',
- description='Check that ledger options are documented in the manpage')
- parser.add_argument('-l', '--ledger',
- dest='ledger',
- type=str,
- action='store',
- required=True,
- help='the path to the ledger executable to test with')
- parser.add_argument('-s', '--source',
- dest='source',
- type=str,
- action='store',
- required=True,
- help='the path to the top level ledger source directory')
- return parser.parse_args()
-
- args = getargs()
+ args = argparse.ArgumentParser(prog='CheckManpage',
+ description='Check that ledger options are documented in the manpage'
+ parents=[CheckOptions.parser()]).parse_args()
script = CheckManpage(args)
status = script.main()
sys.exit(status)