mirror of
https://github.com/kennethreitz-archive/plac.git
synced 2026-06-05 23:50:18 +00:00
7 lines
179 B
Python
7 lines
179 B
Python
def main(arg: "required argument"):
|
|
"do something with arg"
|
|
print('Got %s' % arg)
|
|
|
|
if __name__ == '__main__':
|
|
import plac; plac.call(main) # passes sys.argv[1:] to main
|