Make run_external parameter required (#6418)

This commit is contained in:
nibon7 2022-08-26 19:31:33 +08:00 committed by GitHub
parent 918ec9daa8
commit 9850424251
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,7 +34,8 @@ impl Command for External {
Signature::build(self.name())
.switch("redirect-stdout", "redirect-stdout", None)
.switch("redirect-stderr", "redirect-stderr", None)
.rest("rest", SyntaxShape::Any, "external command to run")
.required("command", SyntaxShape::Any, "external comamdn to run")
.rest("args", SyntaxShape::Any, "arguments for external command")
.category(Category::System)
}