cli.main#
- bartorch.cli.main()#
Run one
bartorchcommand line, the console entry point.- Parameters:
argv (list of str, default=None) – Command and arguments, as
barttakes them;Nonereadssys.argv[1:]. No arguments,--helpor--listprint the command list;--versionprints BART’s version;<command> --helpprints 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