Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 566 Bytes

README.md

File metadata and controls

30 lines (21 loc) · 566 Bytes

BetterCLI

A Python library for building better command-line interfaces with ease.

Installation

You can install BetterCLI using pip:

pip install bettercli

Example

from bettercli import CLI, pos_option, kw_option

cli = CLI()

@cli.command("greet")
def greet(name):
    print(f"Hello {name}!")
    
@pos_option("name", str, length=1, default="World")
@cli.command("greet")
def greet(name):
    print(f"Hello {name}!")

License

BetterCLI is licensed under the MIT License. See the LICENSE file for more information.