This project demonstrates how to build Command-Line Interfaces (CLIs) in Python using the argparse module. It shows how to create interactive scripts that accept inputs from the terminal in a user-friendly way.
- Accept command-line arguments and options
- Display helpful usage messages
- Handle input errors gracefully
- Examples of practical CLI scripts
The project uses Python's argparse module to:
- Define commands, arguments, and flags
- Parse user input from the terminal
- Execute actions based on the provided arguments
- Display help and error messages automatically
Open terminal in Resolution/src/resolution_week1_suvamhere Then, in the terminal, do as shown in the example usagee
(Use Python3 for Linux and python for Mac/Windows)
python3 main.py "Coding"
python3 main.py --help p #for help
python3 main.py --c #for use after completing a task
python3 main.py --delete id_no>gt;#to delete any id