Skip to content

Instantly share code, notes, and snippets.

@Drunkar
Created December 11, 2016 04:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Drunkar/b4875d74bdf1b02a2c446e12f85f30ee to your computer and use it in GitHub Desktop.
Save Drunkar/b4875d74bdf1b02a2c446e12f85f30ee to your computer and use it in GitHub Desktop.
import argparse
parser = argparse.ArgumentParser(description="argparse template.")
parser.add_argument("-i", "--input", type=str, required=True, help="Required: Input file.")
parser.add_argument("-o", "--output", type=str, required=True, help="Required: Output file.")
parser.add_argument("-s", "--simulate", action="store_true", help="Simulate flag.")
args = parser.parse_args()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment