Make cd argument optional

`cd` with no arugments changes directory to $HOME.
This commit is contained in:
Odin Dutton 2019-08-20 13:11:29 +10:00
parent 56c04ff5b6
commit 82a315f06a

View file

@ -18,7 +18,7 @@ impl WholeStreamCommand for CD {
} }
fn signature(&self) -> Signature { fn signature(&self) -> Signature {
Signature::build("cd").required("directory", SyntaxType::Path) Signature::build("cd").optional("directory", SyntaxType::Path)
} }
} }