25.9.2
This website uses cookies to ensure you get the best experience on our website. Learn more

Building a CLI with argparse

Kashyap Makwana

Skillsoft issued completion badges are earned based on viewing the percentage required or receiving a passing score when assessment is required. It's 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, you'll review the history of CLIs and learn how to build a CLI using argparse, a module in the Python Standard Library. You'll examine positional and optional arguments, as well as how to use custom actions. Finally, you'll 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). 

Issued on

September 14, 2022

Expires on

Does not expire