mirror of
https://github.com/kennethreitz-archive/plac.git
synced 2026-06-05 23:50:18 +00:00
7 lines
196 B
Python
7 lines
196 B
Python
# example8_.py
|
|
def main(dsn, command: ("SQL query", 'option')='select * from table'):
|
|
print('executing %r on %s' % (command, dsn))
|
|
|
|
if __name__ == '__main__':
|
|
import plac; plac.call(main)
|