Sign in
android-kvm
/
buildroot
/
00e644adb182681a51d39375d70d0a888d0b950f
/
.
/
support
/
testing
/
tests
/
package
/
sample_python_argh.py
blob: 48247bf6048189856b661b9221b9658f8843d7b7 [
file
] [
log
] [
blame
]
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
)