merge app with main

This commit is contained in:
Clément DOUIN
2021-03-23 22:37:52 +01:00
parent f2158e71d2
commit 8dbd7c1e7a
14 changed files with 85 additions and 730 deletions
+3 -3
View File
@@ -1,11 +1,11 @@
use clap::Arg;
pub fn output_args<'a>() -> Vec<Arg<'a, 'a>> {
vec![Arg::with_name("output")
pub fn output_arg<'a>() -> Arg<'a, 'a> {
Arg::with_name("output")
.long("output")
.short("o")
.help("Defines the output format")
.value_name("STRING")
.possible_values(&["plain", "json"])
.default_value("plain")]
.default_value("plain")
}