import sys
import shlex
if len(sys.argv) <= 1:
    sys.argv.extend(shlex.split(input("=> ")))
import commandapp as cmdapp
import typing as t


app = cmdapp.CommandApp()

app.version = cmdapp.__version__


@app.register
def test(param: t.Union[int, str], other: int, auto):
    r"""
    simple test command
    """
    print("Test success")
    print([param, other, auto])


def subcmd():
    raise RuntimeError()


@app.register(name='raise')
def cmd_raise():
    r"""
    command to test exception output
    """
    subcmd()


app.run()

import sys
import shlex
if len(sys.argv) <= 1:
    sys.argv.extend(shlex.split(input("=> ")))
import commandapp as cmdapp
import typing as t


app = cmdapp.CommandApp()

app.version = cmdapp.__version__


@app.register
def test(param: t.Union[int, str], other: int, auto):
    r"""
    simple test command
    """
    print("Test success")
    print([param, other, auto])


def subcmd():
    raise RuntimeError()


@app.register(name='raise')
def cmd_raise():
    r"""
    command to test exception output
    """
    subcmd()


app.run()

simple test command command to test exception output