|
|
@ -55,8 +55,7 @@ fn parse_args() -> Cli {
|
|
|
|
// running with cargo vcs causes the vcs arg to be sent along
|
|
|
|
// running with cargo vcs causes the vcs arg to be sent along
|
|
|
|
// we need to unhack this for Clap
|
|
|
|
// we need to unhack this for Clap
|
|
|
|
let mut all_args: Vec<OsString> = std::env::args_os().collect();
|
|
|
|
let mut all_args: Vec<OsString> = std::env::args_os().collect();
|
|
|
|
let vcsstr = String::from("vcs");
|
|
|
|
let osvcsstr = OsString::from("vcs");
|
|
|
|
let osvcsstr = OsString::from(vcsstr);
|
|
|
|
|
|
|
|
if all_args.get(1) == Some(&osvcsstr) {
|
|
|
|
if all_args.get(1) == Some(&osvcsstr) {
|
|
|
|
all_args.remove(1);
|
|
|
|
all_args.remove(1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|