mirror of
https://github.com/kennethreitz-archive/plac.git
synced 2026-06-05 23:50:18 +00:00
10 lines
222 B
Python
10 lines
222 B
Python
# example9.py
|
|
|
|
def main(verbose: ('prints more info', 'flag', 'v'), dsn: 'connection string'):
|
|
if verbose:
|
|
print('connecting to %s' % dsn)
|
|
# ...
|
|
|
|
if __name__ == '__main__':
|
|
import plac; plac.call(main)
|