mirror of
https://github.com/nushell/nushell
synced 2024-12-28 22:13:10 +00:00
make mv parameters required
This commit is contained in:
parent
e325fd114d
commit
b2148e32b8
1 changed files with 2 additions and 12 deletions
|
@ -19,26 +19,16 @@ impl Command for Mv {
|
||||||
|
|
||||||
fn signature(&self) -> nu_protocol::Signature {
|
fn signature(&self) -> nu_protocol::Signature {
|
||||||
Signature::build("mv")
|
Signature::build("mv")
|
||||||
.optional(
|
.required(
|
||||||
"source",
|
"source",
|
||||||
SyntaxShape::GlobPattern,
|
SyntaxShape::GlobPattern,
|
||||||
"the location to move files/directories from",
|
"the location to move files/directories from",
|
||||||
)
|
)
|
||||||
.optional(
|
.required(
|
||||||
"destination",
|
"destination",
|
||||||
SyntaxShape::FilePath,
|
SyntaxShape::FilePath,
|
||||||
"the location to move files/directories to",
|
"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(
|
fn run(
|
||||||
|
|
Loading…
Reference in a new issue