mirror of
https://github.com/nushell/nushell.git
synced 2024-11-26 10:23:52 +01:00
Merge pull request #172 from androbtech/prevent-crash-flags-passed
Informs passing flags is unimplemented instead of quitting.
This commit is contained in:
commit
6f21cbe7cd
@ -161,7 +161,7 @@ pub fn baseline_parse_semantic_token(
|
||||
TokenNode::Delimited(delimited) => baseline_parse_delimited(delimited, registry, source),
|
||||
TokenNode::Pipeline(_pipeline) => unimplemented!(),
|
||||
TokenNode::Operator(_op) => unreachable!(),
|
||||
TokenNode::Flag(_flag) => unimplemented!(),
|
||||
TokenNode::Flag(_flag) => Err(ShellError::unimplemented("passing flags is not supported yet.")),
|
||||
TokenNode::Identifier(_span) => unreachable!(),
|
||||
TokenNode::Whitespace(_span) => unreachable!(),
|
||||
TokenNode::Error(error) => Err(*error.item.clone()),
|
||||
|
Loading…
Reference in New Issue
Block a user