cli.main

Contents

cli.main#

bartorch.cli.main()#

Run one bartorch command line, the console entry point.

Parameters:

argv (list of str, default=None) – Command and arguments, as bart takes them; None reads sys.argv[1:]. No arguments, --help or --list print the command list; --version prints BART’s version; <command> --help prints the command’s help.

Returns:

Exit code: 0 on success, 1 for an unknown command, a missing input file or a failed command.

Return type:

int