summaryrefslogtreecommitdiffstats
path: root/support/testing/tests/package/sample_python_argh.py
diff options
context:
space:
mode:
Diffstat (limited to 'support/testing/tests/package/sample_python_argh.py')
-rw-r--r--support/testing/tests/package/sample_python_argh.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/support/testing/tests/package/sample_python_argh.py b/support/testing/tests/package/sample_python_argh.py
new file mode 100644
index 0000000000..48247bf604
--- /dev/null
+++ b/support/testing/tests/package/sample_python_argh.py
@@ -0,0 +1,10 @@
+import argh
+
+
+@argh.arg("foo", help="help for foo")
+@argh.arg("--bar", help="help for bar")
+def main(foo, bar=False):
+ print("{}, {}".format(foo, bar))
+
+
+argh.dispatch_command(main)
OpenPOWER on IntegriCloud