Skip to content

R5dan/Better-CLI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

The Better CLI python repository

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages