Building a CLI with argparse

placeholder

common to need to deliver software that runs with a variety of options and a command line interface is a great way to let users invoke these various options. CLIs have been used to run programs since the early 1960s and are still relevant today. Their simplistic design small footprint and self-documentation make them ideal for automated or scheduled tasks. In this course youll review the history of CLIs and learn how to build a CLI using argparse a module in the Python Standard Library. Youll examine positional and optional arguments as well as how to use custom actions. Finally youll learn how to install a Python module as an editable package and explore the alternative third-party packages for building a CLI – docopt and click. This course was originally created by Global Knowledge (GK).