mirror of
https://github.com/kennethreitz-archive/plac.git
synced 2026-06-05 15:40:17 +00:00
9 lines
212 B
Python
9 lines
212 B
Python
# example8.py
|
|
def main(command: ("SQL query", 'option', 'c'), dsn):
|
|
if command:
|
|
print('executing %s on %s' % (command, dsn))
|
|
# ...
|
|
|
|
if __name__ == '__main__':
|
|
import plac; plac.call(main)
|