mirror of
https://github.com/nushell/nushell
synced 2024-12-28 05:53:09 +00:00
Make cd argument optional
`cd` with no arugments changes directory to $HOME.
This commit is contained in:
parent
56c04ff5b6
commit
82a315f06a
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue