Skip to main content

luaur_bytecode_cli/functions/
display_help.rs

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