mirror of
https://github.com/kennethreitz-archive/plac.git
synced 2026-06-05 15:40:17 +00:00
10 lines
226 B
Python
10 lines
226 B
Python
# 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)
|