make mv parameters required

This commit is contained in:
xiuxiu62 2021-10-04 05:13:47 -07:00
parent e325fd114d
commit b2148e32b8

View File

@ -19,26 +19,16 @@ impl Command for Mv {
fn signature(&self) -> nu_protocol::Signature {
Signature::build("mv")
.optional(
.required(
"source",
SyntaxShape::GlobPattern,
"the location to move files/directories from",
)
.optional(
.required(
"destination",
SyntaxShape::FilePath,
"the location to move files/directories to",
)
// .required(
// "source",
// SyntaxShape::GlobPattern,
// "the location to move files/directories from",
// )
// .required(
// "destination",
// SyntaxShape::FilePath,
// "the location to move files/directories to",
// )
}
fn run(