diff options
author | Matthias Beyer <matthias.beyer@atos.net> | 2021-06-07 15:39:00 +0200 |
---|---|---|
committer | Matthias Beyer <matthias.beyer@atos.net> | 2021-06-07 15:39:00 +0200 |
commit | 810cc1c8281be8437ae0fd6257b2ea6190fe8d24 (patch) | |
tree | 33d458bce8c87e5adebf8fae64408a48468ecd27 /src/cli.rs | |
parent | 5e4107b554678dc7191631516a2ec5f5efdc416c (diff) | |
parent | 51b70e647230fb6df95dd3b0d35ce77409e73afb (diff) |
Merge branch 'db-jobs-flags'
Diffstat (limited to 'src/cli.rs')
-rw-r--r-- | src/cli.rs | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -289,6 +289,30 @@ pub fn cli<'a>() -> App<'a> { .value_name("LIMIT") .about("Only list newest LIMIT jobs instead of all") ) + + .arg(arg_older_than_date("List only jobs older than DATE")) + .arg(arg_newer_than_date("List only jobs newer than DATE")) + + .arg(Arg::new("endpoint") + .required(false) + .multiple(false) + .long("endpoint") + .short('e') + .takes_value(true) + .value_name("ENDPOINT") + .about("Only show jobs from ENDPOINT") + ) + + .arg(Arg::new("package") + .required(false) + .multiple(false) + .long("package") + .short('p') + .takes_value(true) + .value_name("PKG") + .about("Only show jobs for PKG") + ) + ) .subcommand(App::new("job") |