Update clap to the latest version (#11017)

* Update clap to the latest version

Besides that it also removes some `structopt` leftovers from some docs.

* Fix compile errors

* More fixes
This commit is contained in:
Bastian Köcher
2022-03-12 15:31:37 +01:00
committed by GitHub
parent d9d05969a1
commit 42484508d7
19 changed files with 87 additions and 86 deletions
+2 -2
View File
@@ -25,7 +25,7 @@ fn main() {
mod cli {
include!("src/cli.rs");
use clap::{ArgEnum, IntoApp};
use clap::{ArgEnum, CommandFactory};
use clap_complete::{generate_to, Shell};
use std::{env, fs, path::Path};
use substrate_build_script_utils::{generate_cargo_keys, rerun_if_git_head_changed};
@@ -61,6 +61,6 @@ mod cli {
fs::create_dir(&path).ok();
let _ = generate_to(*shell, &mut Cli::into_app(), "substrate-node", &path);
let _ = generate_to(*shell, &mut Cli::command(), "substrate-node", &path);
}
}