Add env option to configure maFiles path (#258)
I'd like to add this awesome tool to Scoop (https://github.com/ScoopInstaller/Scoop) which works best with portable programs. Currently the problem is that steamguard-cli doesn't look for a local/relative maFiles folder. The alternative I opted for would be to use an env var which Scoop can also set to its persist dir.
This commit is contained in:
parent
f05f423d23
commit
b9d9179537
1 changed files with 1 additions and 0 deletions
|
@ -93,6 +93,7 @@ pub(crate) struct GlobalArgs {
|
||||||
#[clap(
|
#[clap(
|
||||||
short,
|
short,
|
||||||
long,
|
long,
|
||||||
|
env = "STEAMGUARD_CLI_MAFILES",
|
||||||
help = "Specify which folder your maFiles are in. This should be a path to a folder that contains manifest.json. Default: ~/.config/steamguard-cli/maFiles"
|
help = "Specify which folder your maFiles are in. This should be a path to a folder that contains manifest.json. Default: ~/.config/steamguard-cli/maFiles"
|
||||||
)]
|
)]
|
||||||
pub mafiles_path: Option<String>,
|
pub mafiles_path: Option<String>,
|
||||||
|
|
Loading…
Reference in a new issue