technology - machine learning - datascience - computer vision - programming
Search

Learn Enough Python to be Useful: argparse – Towards Data Science

# videos.pyimport argparseparser = argparse.ArgumentParser(description=’Videos to images’)parser.add_argument(‘indir’, type=str, help=’Input dir for videos’)parser.add_argument(‘outdir’, type=str, help=’Output dir for image’)args = parser.parse_args()print(args.indir)

Source : Learn Enough Python to be Useful: argparse – Towards Data Science