text: # example2.py
  def main(dsn):
      "Do something on the database"
      print(dsn)
      # ...
  
  if __name__ == '__main__':
      import argparse
      p = argparse.ArgumentParser()
      p.add_argument('dsn')
      arg = p.parse_args()
      main(arg.dsn)
  