Skip to content

Commit 1c838c8

Browse files
committed
Adjust command line conflicts
1 parent c75f378 commit 1c838c8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

bin/src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use std::path::PathBuf;
88
#[command(version, about, long_about = None, arg_required_else_help = true)]
99
struct Args {
1010
/// Expression to evaluate
11-
#[arg(short, long, conflicts_with_all = ["input", "expr"])]
11+
#[arg(short, long, conflicts_with_all = ["input", "expr", "symbol_table"])]
1212
expression: Option<String>,
1313

1414
/// Expression to evaluate (positional)
@@ -20,15 +20,15 @@ struct Args {
2020
input: Option<PathBuf>,
2121

2222
/// Save compiled expression to binary file
23-
#[arg(short, long)]
23+
#[arg(short, long, conflicts_with_all = ["assembly", "symbol_table"])]
2424
output: Option<PathBuf>,
2525

2626
/// Define constants (e.g., -D x=5.0)
2727
#[arg(short = 'D', long, value_parser = parse_key_val, action = ArgAction::Append)]
2828
define: Vec<(String, f64)>,
2929

3030
/// List all available functions and constants
31-
#[arg(short = 't', long)]
31+
#[arg(short = 't', long, conflicts_with_all=["expression", "expr", "input", "output", "assembly"])]
3232
symbol_table: bool,
3333

3434
/// Print the assembly code

0 commit comments

Comments
 (0)