|
|
@@ -32,7 +32,7 @@ pub static GIT_IGNORE: Arg = Arg { short: None, long: "git-ignore", t
|
|
|
pub static DIRS_FIRST: Arg = Arg { short: None, long: "group-directories-first", takes_value: TakesValue::Forbidden };
|
|
|
pub static ONLY_DIRS: Arg = Arg { short: Some(b'D'), long: "only-dirs", takes_value: TakesValue::Forbidden };
|
|
|
const SORTS: Values = &[ "name", "Name", "size", "extension",
|
|
|
- "Extension", "modified", "accessed",
|
|
|
+ "Extension", "modified", "changed", "accessed",
|
|
|
"created", "inode", "type", "none" ];
|
|
|
|
|
|
// display options
|
|
|
@@ -43,12 +43,13 @@ pub static HEADER: Arg = Arg { short: Some(b'h'), long: "header", takes_
|
|
|
pub static INODE: Arg = Arg { short: Some(b'i'), long: "inode", takes_value: TakesValue::Forbidden };
|
|
|
pub static LINKS: Arg = Arg { short: Some(b'H'), long: "links", takes_value: TakesValue::Forbidden };
|
|
|
pub static MODIFIED: Arg = Arg { short: Some(b'm'), long: "modified", takes_value: TakesValue::Forbidden };
|
|
|
+pub static CHANGED: Arg = Arg { short: None, long: "changed", takes_value: TakesValue::Forbidden };
|
|
|
pub static BLOCKS: Arg = Arg { short: Some(b'S'), long: "blocks", takes_value: TakesValue::Forbidden };
|
|
|
pub static TIME: Arg = Arg { short: Some(b't'), long: "time", takes_value: TakesValue::Necessary(Some(TIMES)) };
|
|
|
pub static ACCESSED: Arg = Arg { short: Some(b'u'), long: "accessed", takes_value: TakesValue::Forbidden };
|
|
|
pub static CREATED: Arg = Arg { short: Some(b'U'), long: "created", takes_value: TakesValue::Forbidden };
|
|
|
pub static TIME_STYLE: Arg = Arg { short: None, long: "time-style", takes_value: TakesValue::Necessary(Some(TIME_STYLES)) };
|
|
|
-const TIMES: Values = &["modified", "accessed", "created"];
|
|
|
+const TIMES: Values = &["modified", "changed", "accessed", "created"];
|
|
|
const TIME_STYLES: Values = &["default", "long-iso", "full-iso", "iso"];
|
|
|
|
|
|
// optional feature options
|
|
|
@@ -65,9 +66,8 @@ pub static ALL_ARGS: Args = Args(&[
|
|
|
&ALL, &LIST_DIRS, &LEVEL, &REVERSE, &SORT, &DIRS_FIRST,
|
|
|
&IGNORE_GLOB, &GIT_IGNORE, &ONLY_DIRS,
|
|
|
|
|
|
- &BINARY, &BYTES, &GROUP, &HEADER, &INODE, &LINKS, &MODIFIED, &BLOCKS,
|
|
|
- &TIME, &ACCESSED, &CREATED, &TIME_STYLE,
|
|
|
+ &BINARY, &BYTES, &GROUP, &HEADER, &INODE, &LINKS, &MODIFIED, &CHANGED,
|
|
|
+ &BLOCKS, &TIME, &ACCESSED, &CREATED, &TIME_STYLE,
|
|
|
|
|
|
&GIT, &EXTENDED,
|
|
|
]);
|
|
|
-
|