diff --git a/complete/src/lib.rs b/complete/src/lib.rs index 5d8649c..ee84b8e 100644 --- a/complete/src/lib.rs +++ b/complete/src/lib.rs @@ -76,6 +76,6 @@ pub fn render(c: &Command, shell: &str) -> String { "nu" | "nushell" => nu::render(c), "man" => man::render(c), "sh" | "bash" | "csh" | "elvish" | "powershell" => panic!("shell '{shell}' completion is not implemented yet!"), - _ => panic!("unknown option '{shell}'! Expected one of: \"md\", \"fish\", \"zsh\", \"man\", \"sh\", \"bash\", \"csh\", \"elvish\", \"powershell\""), + _ => panic!("unknown option '{shell}'! Expected one of: \"md\", \"fish\", \"zsh\", \"nu[shell]\", \"man\", \"sh\", \"bash\", \"csh\", \"elvish\", \"powershell\""), } } diff --git a/docs/guide/completions.md b/docs/guide/completions.md index f325b91..d89d3dd 100644 --- a/docs/guide/completions.md +++ b/docs/guide/completions.md @@ -33,7 +33,7 @@ Shell completions and documentation can be generated automatically by this crate cargo run --features parse-is-complete -- [shell] ``` -The `[shell]` value here can be `fish`, `zsh`, `bash`, `powershell`, `elvish` or `nu`. +The `[shell]` value here can be `fish`, `zsh`, `nu`, `sh`, `bash`, `csh`, `elvish`, or `powershell`. > **Note**: Some of these remain unimplemented as of writing. @@ -47,4 +47,4 @@ If you do not want to hijack the [`Options::parse`](crate::Options::parse) funct [Up](super) [Next]() - \ No newline at end of file +