blob: 8e39effb3ef1aea59052c103ed7eb10edfb7f728 (
plain)
1
2
3
4
5
6
7
8
9
|
# 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)
|