mirror of
https://github.com/nushell/nushell.git
synced 2024-11-29 20:03:54 +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::Delimited(delimited) => baseline_parse_delimited(delimited, registry, source),
|
||||||
TokenNode::Pipeline(_pipeline) => unimplemented!(),
|
TokenNode::Pipeline(_pipeline) => unimplemented!(),
|
||||||
TokenNode::Operator(_op) => unreachable!(),
|
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::Identifier(_span) => unreachable!(),
|
||||||
TokenNode::Whitespace(_span) => unreachable!(),
|
TokenNode::Whitespace(_span) => unreachable!(),
|
||||||
TokenNode::Error(error) => Err(*error.item.clone()),
|
TokenNode::Error(error) => Err(*error.item.clone()),
|
||||||
|
Loading…
Reference in New Issue
Block a user