Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import argparse
if __name__ == "__main__":
### define config
parser = argparse.ArgumentParser(description='This script is ...')
parser.add_argument("-c", "--configpath", required=True, help='config file path')
parser.add_argument("-l", "--logtype", required=True, help='logtype ex. hogefuga')
args = parser.parse_args()
hg = Hogehoge(args.configpath, args.logtype)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment