Command Line Interface

Henson provides the following command line interface.

henson

usage: henson [-h] [--version] [-a APP] {run} ...
-h, --help

show this help message and exit

--version

show program’s version number and exit

-a, --app

the path to the application to run

henson run

Import and run an application.

usage: henson run [-h] [--verbose | --quiet] [-r] [-w WORKERS] [-d]
                  application-path
application-path

the path to the application to run

-h, --help

show this help message and exit

--verbose, -v

verbose mode

--quiet, -q

quiet mode

-r, --reloader

reload the application on changes

-w <workers>, --workers <workers>

the number of asynchronous tasks to run

-d, --debug

enable debug mode

Further Details

When developing locally, applications often need to be restarted as changes are made. To make this easier, Henson provides a --reloader option to the run command. With this option enabled, Henson will watch an application’s root directory and restart the application automatically when changes are detected:

$ python -m henson run file_printer --reloader

Note

The --reloader option is not recommended for production use.

It’s also possible to enable Henson’s Debug Mode through the --debug option:

$ python -m henson run file_printer --debug

Note

The --debug option is not recommended for production use.

This will also enable the reloader.

Extending the Command Line

For information about how to extension Henson’s command line interface, see Extending the Command Line.