We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b77dbf commit d8b3aeaCopy full SHA for d8b3aea
src/main.rs
@@ -91,16 +91,15 @@ impl BuildKind {
91
}
92
93
fn parse_args() -> Args {
94
- use clap::{App, Arg, ArgGroup};
+ use clap::{Arg, ArgGroup, Command};
95
use std::iter::FromIterator;
96
let version = option_env!("CARGO_PKG_VERSION").unwrap_or("unknown");
97
let about = r#"Compiles and runs a Rust script."#;
98
99
- let app = App::new(consts::PROGRAM_NAME)
+ let app = Command::new(consts::PROGRAM_NAME)
100
.version(version)
101
.about(about)
102
- .setting(clap::AppSettings::TrailingVarArg)
103
- //.override_help(about)
+ .trailing_var_arg(true)
104
.arg(Arg::new("script")
105
.index(1)
106
.help("Script file or expression to execute.")
0 commit comments