forked from extern/nushell
Make cd argument optional
`cd` with no arugments changes directory to $HOME.
This commit is contained in:
parent
56c04ff5b6
commit
82a315f06a
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user