diff options
| author | bloodstalker <thabogre@gmail.com> | 2020-03-07 14:52:35 +0000 | 
|---|---|---|
| committer | bloodstalker <thabogre@gmail.com> | 2020-03-07 14:52:35 +0000 | 
| commit | e6f28490f1def7e31c4ff36a731f584368935e34 (patch) | |
| tree | 74151eff4fe15c1843ecc8eb2f03818828849ffc /testscript | |
| parent | coverage (diff) | |
| download | cgrep-e6f28490f1def7e31c4ff36a731f584368935e34.tar.gz cgrep-e6f28490f1def7e31c4ff36a731f584368935e34.zip | |
more bug fixes as we're getting ready for the first release. still not sure how to handle the test result evaluation.
Diffstat (limited to 'testscript')
| -rwxr-xr-x | testscript/main.py | 18 | 
1 files changed, 18 insertions, 0 deletions
| diff --git a/testscript/main.py b/testscript/main.py new file mode 100755 index 0000000..4990d10 --- /dev/null +++ b/testscript/main.py @@ -0,0 +1,18 @@ +#!/usr/bin/python3 +# _*_ coding=utf-8 _*_ + +import argparse + +class Argparser(object): +    def __init__(self): +        parser = argparse.ArgumentParser() +        parser.add_argument("--string", type=str, help="string") +        parser.add_argument("--bool", action="store_true", help="bool", default=False) +        parser.add_argument("--dbg", action="store_true", help="debug", default=False) +        self.args = parser.parse_args() + +def main(): +    argparser = Argparser() + +if __name__ == "__main__": +    main() | 
