aboutsummaryrefslogtreecommitdiffstats
path: root/testscript
diff options
context:
space:
mode:
Diffstat (limited to 'testscript')
-rwxr-xr-xtestscript/main.py18
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()