mirror of
https://github.com/nushell/nushell.git
synced 2024-12-17 04:31:21 +01:00
make mv parameters required
This commit is contained in:
parent
e325fd114d
commit
b2148e32b8
@ -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 New Issue
Block a user