mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-14 14:46:37 +00:00
Fix args::parse() for self-install mode
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
This commit is contained in:
parent
a54296183e
commit
19151adc62
1 changed files with 4 additions and 0 deletions
|
@ -518,6 +518,10 @@ pub fn parse() -> (Args, PkgOverride) {
|
|||
// Load options
|
||||
let mut opts = Args::parse_from(args);
|
||||
|
||||
if opts.self_install {
|
||||
return (opts, Default::default());
|
||||
}
|
||||
|
||||
if opts.log_level.is_none() {
|
||||
if let Some(log) = env::var("BINSTALL_LOG_LEVEL")
|
||||
.ok()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue