luaur-bytecode-cli 0.1.0

Command-line Luau bytecode disassembler and inspector (Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[allow(non_snake_case)]
pub fn display_help(argv0: &str) {
    println!("Usage: {} [options] [file list]", argv0);
    println!();
    println!("Available options:");
    println!("  -h, --help: Display this usage message.");
    println!(
        "  -O<n>: compile with optimization level n (default 1, n should be between 0 and 2)."
    );
    println!("  -g<n>: compile with debug level n (default 1, n should be between 0 and 2).");
    println!("  --fflags=<flags>: comma-separated list of fast flags to enable/disable (--fflags=true,false,LuauFlag1=true,LuauFlag2=false).");
    println!("  --summary-file=<filename>: file in which bytecode analysis summary will be recorded (default 'bytecode-summary.json').");

    std::process::exit(0);
}