diff options
Diffstat (limited to 'src/command/history.rs')
-rw-r--r-- | src/command/history.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/command/history.rs b/src/command/history.rs index 4caf4c17..f8a5b27e 100644 --- a/src/command/history.rs +++ b/src/command/history.rs @@ -28,7 +28,10 @@ pub enum HistoryCmd { about="list all items in history", aliases=&["l", "li", "lis"], )] - List, + List { + #[structopt(long)] + distinct: bool, + }, } impl HistoryCmd { @@ -65,7 +68,7 @@ impl HistoryCmd { Ok(()) } - HistoryCmd::List => db.list(), + HistoryCmd::List { distinct } => db.list(*distinct), } } } |