summaryrefslogtreecommitdiff
path: root/test/CheckManpage.py
diff options
context:
space:
mode:
authorAlexis Hildebrandt <afh@surryhill.net>2023-12-06 01:44:53 +0000
committerGitHub <noreply@github.com>2023-12-06 01:44:53 +0000
commitd270aa7b30f6cb0973467806b6b318c9fc39de47 (patch)
treed2a20d9658c3c78ca91e29e9a8343847f55c8516 /test/CheckManpage.py
parenta0bd969581a5cf3a3f88c74ba31e4764d7b24fd2 (diff)
parentecbfaa9c2e6733d516351d0a815b4cd822bfed39 (diff)
downloadfork-ledger-d270aa7b30f6cb0973467806b6b318c9fc39de47.tar.gz
fork-ledger-d270aa7b30f6cb0973467806b6b318c9fc39de47.tar.bz2
fork-ledger-d270aa7b30f6cb0973467806b6b318c9fc39de47.zip
Merge pull request #2311 from afh/modernize-test-scripts
tests: Modernize test scripts
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)