buildroot/support/testing/tests/package/sample_python_argh.py

11 lines
185 B
Python

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)