fix: normalize some parameter names (#5725)

This commit is contained in:
Justin Ma
2022-06-06 22:42:13 +08:00
committed by GitHub
parent 820a6bfb08
commit 64efa30f3e
2 changed files with 8 additions and 8 deletions

View File

@ -17,7 +17,7 @@ impl Command for Print {
Signature::build("print")
.rest("rest", SyntaxShape::Any, "the values to print")
.switch(
"no_newline",
"no-newline",
"print without inserting a newline for the line ending",
Some('n'),
)
@ -40,7 +40,7 @@ impl Command for Print {
_input: PipelineData,
) -> Result<PipelineData, ShellError> {
let args: Vec<Value> = call.rest(engine_state, stack, 0)?;
let no_newline = call.has_flag("no_newline");
let no_newline = call.has_flag("no-newline");
let head = call.head;
for arg in args {