[python | python3] -m [pip | pip3] install create-a-cli
from cli import Interface
cli = Interface("Example CLI")
@cli.command()
def hello():
print("Hello World")
cli.run()
Command Line > python path/to/file.py
>>> hello
Hello World
[python | python3] -m [pip | pip3] install create-a-cli
from cli import Interface
cli = Interface("Example CLI")
@cli.command()
def hello():
print("Hello World")
cli.run()
Command Line > python path/to/file.py
>>> hello
Hello World