diff --git a/crates/nu-command/src/filesystem/open.rs b/crates/nu-command/src/filesystem/open.rs index 0115e4a321..37852ecf74 100644 --- a/crates/nu-command/src/filesystem/open.rs +++ b/crates/nu-command/src/filesystem/open.rs @@ -20,17 +20,13 @@ impl Command for Open { } fn usage(&self) -> &str { - "List the files in a directory." + "Opens a file." } fn signature(&self) -> nu_protocol::Signature { Signature::build("open") - .required( - "filename", - SyntaxShape::GlobPattern, - "the glob pattern to use", - ) - .switch("raw", "open file as binary", Some('r')) + .required("filename", SyntaxShape::Filepath, "the filename to use") + .switch("raw", "open file as raw binary", Some('r')) .category(Category::FileSystem) }