luaur-analyze-cli 0.1.0

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