diff options
author | Matthias Beyer <matthias.beyer@atos.net> | 2019-04-30 16:51:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-30 16:51:35 +0200 |
commit | 9248abe33e96d14f7afc4c03efa1c3f1ce315ea5 (patch) | |
tree | 2d83b040d27187b5c80cd2e7b021508ad1c59b6e /src/cli.rs | |
parent | 632b7e43de2df4f90da0fe14d85fae8aac13b151 (diff) | |
parent | 030dd838277e7868a1f73b0edf518fa4b0849c2d (diff) |
Merge pull request #12 from matthiasbeyer/add-sort
Add: Feature to sort output
Diffstat (limited to 'src/cli.rs')
-rw-r--r-- | src/cli.rs | 34 |
1 files changed, 34 insertions, 0 deletions
@@ -62,6 +62,23 @@ pub fn build_cli<'a>() -> App<'a, 'a> { .takes_value(true) .help("Query data about a project") ) + + .arg(Arg::with_name("sort-version") + .long("sort-version") + .required(false) + .multiple(false) + .takes_value(false) + .help("Sort output by version") + .conflicts_with("sort-repo") + ) + .arg(Arg::with_name("sort-repo") + .long("sort-repo") + .required(false) + .multiple(false) + .takes_value(false) + .help("Sort output by repository") + .conflicts_with("sort-version") + ) ) .subcommand(SubCommand::with_name("problems") @@ -89,6 +106,23 @@ pub fn build_cli<'a>() -> App<'a, 'a> { .args(&["repo", "maintainer"]) .required(true)) + + .arg(Arg::with_name("sort-maintainer") + .long("sort-maintainer") + .required(false) + .multiple(false) + .takes_value(false) + .help("Sort output by maintainer") + .conflicts_with("sort-repo") + ) + .arg(Arg::with_name("sort-repo") + .long("sort-repo") + .required(false) + .multiple(false) + .takes_value(false) + .help("Sort output by repository") + .conflicts_with("sort-maintainer") + ) ) .subcommand(SubCommand::with_name("compare") |