blob: 9098cfe6ba17a7caa68c15b6dcab7783fc443775 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
use clap::App;
use clap::Arg;
use clap::crate_authors;
use clap::crate_version;
pub fn app<'a>() -> App<'a, 'a> {
App::new("fss")
.author(crate_authors!())
.version(crate_version!())
.about("Filesystemsearch")
.subcommand(App::new("index")
.version(crate_version!())
.about("Index a file")
.arg(Arg::with_name("file")
.required(true)
.multiple(true)
.value_name("FILE")
.help("Index these files")
)
)
.subcommand(App::new("search")
.version(crate_version!())
.about("Search for a file")
.arg(Arg::with_name("term")
.required(true)
.multiple(true)
.value_name("TERM")
.help("Search with these terms")
)
)
}
|