mirror of
https://github.com/nushell/nushell
synced 2024-12-28 05:53:09 +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 {
|
||||
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(
|
||||
|
|
Loading…
Reference in a new issue