Skip to content

Commit

Permalink
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions yash-builtin/src/type.rs
Original file line number Diff line number Diff line change
@@ -78,6 +78,9 @@ const OPTION_SPECS: &[OptionSpec] = &[

fn parse(env: &mut Env, args: Vec<Field>) -> Result<Command, crate::command::syntax::Error> {
let (mut options, operands) = parse_arguments(OPTION_SPECS, Mode::with_env(env), args)?;

// `type` is equivalent to `command -V`, so add the `-V` option and delegate
// to the `command` built-in.
let spec = OptionSpec::new().short('V').long("verbose-identify");
let location = env.stack.current_builtin().map_or_else(
|| Location::dummy(""),
@@ -88,6 +91,7 @@ fn parse(env: &mut Env, args: Vec<Field>) -> Result<Command, crate::command::syn
location,
argument: None,
});

interpret(options, operands)
}

0 comments on commit 72e1f07

Please sign in to comment.