blob: 92538d17157d2fa12aa9d036865281c1ed4c8164 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
use clap_v3 as clap;
use clap::App;
use clap::Arg;
use clap::crate_authors;
use clap::crate_version;
pub fn cli<'a>() -> App<'a> {
App::new("butido")
.author(crate_authors!())
.version(crate_version!())
.about("Generic Build Orchestration System for building linux packages with docker")
.arg(Arg::with_name("package_name")
.required(true)
.multiple(false)
.index(1)
)
.arg(Arg::with_name("package_version")
.required(false)
.multiple(false)
.index(2)
)
}
|