Created
May 3, 2017 07:01
-
-
Save serhii73/5854098059701028e7d19b8339b01780 to your computer and use it in GitHub Desktop.
argparse
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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