Skip to content

Instantly share code, notes, and snippets.

@naxty
Created October 9, 2017 13:00
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 naxty/872d6a5ea7c502211802cbeeda81cd73 to your computer and use it in GitHub Desktop.
Save naxty/872d6a5ea7c502211802cbeeda81cd73 to your computer and use it in GitHub Desktop.
Python argument parser
import argparse
arg_parser = argparse.ArgumentParser()
arg_parser.add_argument("-p", "--path", required=True, help="Path of the files")
args = vars(arg_parser.parse_args())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment