fork download
  1. import argparse
  2. parser = argparse.ArgumentParser()
  3. parser.add_argument("--show", action='store_true')
  4. parser.add_argument("--do-stuff", action='store_true')
  5. args = parser.parse_args()
  6.  
  7. if args.show:
  8. print('show')
  9. if args.do_stuff:
  10. print('doing stuff')
  11.  
Success #stdin #stdout 0.04s 9376KB
stdin
Standard input is empty
stdout
Standard output is empty