mirror of
https://github.com/edu4rdshl/blackarch-devtools.git
synced 2026-07-17 23:24:47 +00:00
Update clap crate configuration.
This commit is contained in:
parent
9c774d6bad
commit
d04e5b8f0c
3 changed files with 5 additions and 5 deletions
|
|
@ -2,6 +2,9 @@ name: blackarch-devtools
|
|||
version: "0.1.2"
|
||||
author: Eduard Tolosa <tolosaeduard@gmail.com>
|
||||
about: Development tools for BlackArch Linux
|
||||
settings:
|
||||
- ArgRequiredElseHelp
|
||||
- StrictUtf8
|
||||
args:
|
||||
- setup:
|
||||
short: s
|
||||
|
|
|
|||
|
|
@ -196,7 +196,7 @@ pub fn build_package_with_missing_deps(missing: &[&str]) {
|
|||
&missing
|
||||
.split("/")
|
||||
.last()
|
||||
.expect("Failed to gest package name."),
|
||||
.expect("Failed to get package name."),
|
||||
]
|
||||
.concat();
|
||||
println!("{}", &missing);
|
||||
|
|
|
|||
|
|
@ -9,10 +9,7 @@ mod functions;
|
|||
|
||||
fn main() {
|
||||
let yaml = load_yaml!("cli.yml");
|
||||
let matches = App::from_yaml(yaml)
|
||||
.setting(AppSettings::ArgRequiredElseHelp)
|
||||
.setting(AppSettings::StrictUtf8)
|
||||
.get_matches();
|
||||
let matches = App::from_yaml(yaml).get_matches();
|
||||
if matches.is_present("setup") {
|
||||
functions::setup_chroot();
|
||||
} else if matches.is_present("build") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue