summaryrefslogtreecommitdiff
path: root/plac/doc/example5.py
blob: 30c1d87d86c90dbe0bef5b5c997c20dd24219e39 (plain)
1
2
3
4
5
6
7
8
9
# example5.py
from datetime import datetime

def main(dsn, table='product', today=datetime.today()):
    "Do something on the database"
    print(dsn, table, today)

if __name__ == '__main__':
    import plac; plac.call(main)