luaur_analyze_cli/functions/
display_help.rs1pub fn display_help(argv0: &str) {
2 println!("Usage: {} [--mode] [options] [file list]", argv0);
3 println!();
4 println!("Available modes:");
5 println!(" omitted: typecheck and lint input files");
6 println!(" --annotate: typecheck input files and output source with type annotations");
7 println!();
8 println!("Available options:");
9 println!(" --formatter=plain: report analysis errors in Luacheck-compatible format");
10 println!(" --formatter=gnu: report analysis errors in GNU-compatible format");
11 println!(" --mode=strict: default to strict mode when typechecking");
12 println!(
13 " --solver={{new|old}}: selects which typechecker to use (defaults to the new solver)"
14 );
15 println!(" --timetrace: record compiler time tracing information into trace.json");
16}