makes --path global

This commit is contained in:
damirka 2021-03-31 20:54:16 +03:00
parent b80cc62368
commit a1d48d4251

View File

@ -55,7 +55,12 @@ struct Opt {
#[structopt(subcommand)]
command: CommandOpts,
#[structopt(short, long, help = "Optional path to Leo program root folder", parse(from_os_str))]
#[structopt(
long,
global = true,
help = "Optional path to Leo program root folder",
parse(from_os_str)
)]
path: Option<PathBuf>,
}