From b2148e32b85ad5afb13a36613b4a0e554c46fe7b Mon Sep 17 00:00:00 2001 From: xiuxiu62 Date: Mon, 4 Oct 2021 05:13:47 -0700 Subject: [PATCH] make mv parameters required --- crates/nu-command/src/filesystem/mv.rs | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/crates/nu-command/src/filesystem/mv.rs b/crates/nu-command/src/filesystem/mv.rs index 3b909cb0fe..b3d9ec2f07 100644 --- a/crates/nu-command/src/filesystem/mv.rs +++ b/crates/nu-command/src/filesystem/mv.rs @@ -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(