Created
October 9, 2017 13:00
-
-
Save naxty/872d6a5ea7c502211802cbeeda81cd73 to your computer and use it in GitHub Desktop.
Python argument parser
This file contains 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 | |
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