Skip to content

Instantly share code, notes, and snippets.

@serhii73
Created May 3, 2017 07:01
Show Gist options
  • Save serhii73/5854098059701028e7d19b8339b01780 to your computer and use it in GitHub Desktop.
Save serhii73/5854098059701028e7d19b8339b01780 to your computer and use it in GitHub Desktop.
argparse
import argparse
PARSER = argparse.ArgumentParser('enter the directory where you want to save the data')
PARSER.add_argument("-d", "--directory", type=str,
help="where to save data? Example: /home/cat/example_folder/")
ARGS = PARSER.parse_args()
OUR_DIR = ARGS.directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment