Skip to content

Commit d162fe8

Browse files
committed
Remove --mapping, --selecting-{left,right} from CLI
1 parent 2a24eb5 commit d162fe8

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

objdiff-cli/src/cmd/diff.rs

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,6 @@ pub struct Args {
6666
#[argp(option, short = 'c')]
6767
/// Configuration property (key=value)
6868
config: Vec<String>,
69-
#[argp(option, short = 'm')]
70-
/// Symbol mapping (target=base)
71-
mapping: Vec<String>,
72-
#[argp(option)]
73-
/// Left symbol name for selection
74-
selecting_left: Option<String>,
75-
#[argp(option)]
76-
/// Right symbol name for selection
77-
selecting_right: Option<String>,
7869
}
7970

8071
pub fn run(args: Args) -> Result<()> {
@@ -183,17 +174,7 @@ fn build_config_from_args(
183174
apply_project_options(&mut diff_config, options)?;
184175
}
185176
apply_config_args(&mut diff_config, &args.config)?;
186-
let mut mapping_config = MappingConfig {
187-
mappings: Default::default(),
188-
selecting_left: args.selecting_left.clone(),
189-
selecting_right: args.selecting_right.clone(),
190-
};
191-
for mapping in &args.mapping {
192-
let (target, base) =
193-
mapping.split_once('=').context("--mapping expects \"target=base\"")?;
194-
mapping_config.mappings.insert(target.to_string(), base.to_string());
195-
}
196-
Ok((diff_config, mapping_config))
177+
Ok((diff_config, MappingConfig::default()))
197178
}
198179

199180
pub struct AppState {

0 commit comments

Comments
 (0)