A simple CLI hello example using argparse.
Project description
hello-cli
A tiny example CLI built with Python’s argparse. It exposes a hello command that greets one or more names with a couple of optional flags.
Install (development)
poetry install
Usage
Run via Poetry:
poetry run hello Alice Bob
poetry run hello -s -f Alice
Options:
-s, --shout: Upper‑case the greeting-f, --flirty: Add a friendly compliment
Install with pipx (optional)
pipx install .
hello --help
Reinstall after changes:
pipx reinstall .
Project details
- Entry point:
hello(configured inpyproject.tomlunder[tool.poetry.scripts]) - Source:
src/hello/main.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
asher_hello_cli-0.1.0.tar.gz
(1.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file asher_hello_cli-0.1.0.tar.gz.
File metadata
- Download URL: asher_hello_cli-0.1.0.tar.gz
- Upload date:
- Size: 1.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.4 CPython/3.12.3 Darwin/24.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
562015282c7b4a2712081690ec69681c95d36e2c3816acf2c7982ed0f72fe19d
|
|
| MD5 |
143d91ee6c9a35f672a90b17c5420170
|
|
| BLAKE2b-256 |
882172eb810881c6a08bddb2c961095f8e8ad17c3b4e411475ea04dc7cbb4506
|
File details
Details for the file asher_hello_cli-0.1.0-py3-none-any.whl.
File metadata
- Download URL: asher_hello_cli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.4 CPython/3.12.3 Darwin/24.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f0951a93461c2df47f83e56056b35ca2c69c78fd1cf16bfaf7f4684c0b95e23
|
|
| MD5 |
302977a4e5450e79a78ef040c41ee9ed
|
|
| BLAKE2b-256 |
cff21346f91c5f5a8d8c3c4e0dd78661637be5a7fa3443a0a858bb3ecbe7e55e
|