Usage

1
2
# Run help
!python src.py -h
usage: pytest [-h] {create,remove,list} ...

App Description goes here

optional arguments:
  -h, --help            show this help message and exit

commands:
  {create,remove,list}
    create              Create new test.
    remove              Remove a test with variadic argument.
    list                List all tests.

1
2
# Run `create` help
!python src.py create -h
usage: pytest create [-h] name

Create new test.

positional arguments:
  name        Name of the test

optional arguments:
  -h, --help  show this help message and exit

1
2
# Run `remove` help
!python src.py remove -h
usage: pytest remove [-h] [name [name ...]]

Remove a test with variadic argument.

positional arguments:
  name        tests to remove (default: None)

optional arguments:
  -h, --help  show this help message and exit

1
2
# Run `list` help
!python src.py list -h
usage: pytest list [-h]

List all tests.

optional arguments:
  -h, --help  show this help message and exit

1
2
# Run `create` command
!python src.py create folder1
name (<class 'str'>): folder1

1
2
# Run `remove` command
!python src.py remove folder1 folder2
name (<class 'tuple'>): ('folder1', 'folder2')

1
2
# Run `list` command
!python src.py list
container (<class 'list'>): []