mirror of
https://github.com/nushell/nushell.git
synced 2024-11-25 09:53:43 +01:00
Rename function argument.
This commit is contained in:
parent
bf4cf561ca
commit
e7ab70f0f0
@ -10,6 +10,7 @@ pub struct Ls;
|
|||||||
#[derive(Deserialize)]
|
#[derive(Deserialize)]
|
||||||
pub struct LsArgs {
|
pub struct LsArgs {
|
||||||
pub path: Option<Tagged<PathBuf>>,
|
pub path: Option<Tagged<PathBuf>>,
|
||||||
|
pub all: bool,
|
||||||
pub full: bool,
|
pub full: bool,
|
||||||
#[serde(rename = "short-names")]
|
#[serde(rename = "short-names")]
|
||||||
pub short_names: bool,
|
pub short_names: bool,
|
||||||
@ -29,6 +30,7 @@ impl PerItemCommand for Ls {
|
|||||||
SyntaxShape::Pattern,
|
SyntaxShape::Pattern,
|
||||||
"a path to get the directory contents from",
|
"a path to get the directory contents from",
|
||||||
)
|
)
|
||||||
|
.switch("all", "show hidden files", Some('a'))
|
||||||
.switch(
|
.switch(
|
||||||
"full",
|
"full",
|
||||||
"list all available columns for each entry",
|
"list all available columns for each entry",
|
||||||
|
Loading…
Reference in New Issue
Block a user