Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

argparse parse path

import argparse, pathlib
parser = argparse.ArgumentParser()
parser.add_argument(path, type=pathlib.Path)
args = parser.parse_args()
path = args.path
 
PREVIOUS NEXT
Tagged: #argparse #parse #path
ADD COMMENT
Topic
Name
5+5 =