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

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

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