Changed run as an alias to run-c

This commit is contained in:
bhavik-goplani 2024-07-12 15:54:02 -05:00
parent adc1110672
commit 6380803dae
3 changed files with 4 additions and 6 deletions

View File

@ -50,9 +50,8 @@ enum Mode {
/// Compiles the program and runs it with the Rust HVM implementation.
RunRs(RunArgs),
/// Compiles the program and runs it with the C HVM implementation.
#[command(alias = "run")]
RunC(RunArgs),
/// Compiles the program and runs it with the C HVM implementation.
Run(RunArgs),
/// Compiles the program and runs it with the Cuda HVM implementation.
RunCu(RunArgs),
/// Compiles the program to hvm and prints to stdout.
@ -310,8 +309,7 @@ fn execute_cli_mode(mut cli: Cli) -> Result<(), Diagnostics> {
println!("{}", hvm_book_show_pretty(&compile_res.hvm_book));
}
Mode::Run(RunArgs { pretty, run_opts, comp_opts, warn_opts, path, arguments })
| Mode::RunC(RunArgs { pretty, run_opts, comp_opts, warn_opts, path, arguments })
Mode::RunC(RunArgs { pretty, run_opts, comp_opts, warn_opts, path, arguments })
| Mode::RunCu(RunArgs { pretty, run_opts, comp_opts, warn_opts, path, arguments })
| Mode::RunRs(RunArgs { pretty, run_opts, comp_opts, warn_opts, path, arguments }) => {
let CliRunOpts { linear, print_stats } = run_opts;

View File

@ -6,6 +6,6 @@ error: unexpected argument '-d' found
tip: to pass '-d' as a value, use '-- -d'
Usage: bend run [OPTIONS] <PATH> [ARGUMENTS]...
Usage: bend run-c [OPTIONS] <PATH> [ARGUMENTS]...
For more information, try '--help'.

View File

@ -6,6 +6,6 @@ error: unexpected argument '-d' found
tip: to pass '-d' as a value, use '-- -d'
Usage: bend run [OPTIONS] <PATH> [ARGUMENTS]...
Usage: bend run-c [OPTIONS] <PATH> [ARGUMENTS]...
For more information, try '--help'.