Python Command Line Arguments with Plac

Опубликовано: 13 Октябрь 2020
на канале: buckmasterinstitute
252
3

If you have a python program which uses command line arguments, even something as simple as one command line argument, it take several lines of code to accept and properly handle this. Multiple command line arguments can be a nightmare to properly handle.

This video will demonstrate how to simplify the usage of python command line arguments with a utility called plac, written by Michele Simionato.

Plac supports positional arguments, optional arguments, default arguments and flags. It will ensure your arguments have been properly entered and are of the correct data type and can give detailed information about proper usage.