Skip to content

Commit 3a64532

Browse files
committed
otp-cache: Make -f/--force-update option global
Similar to -v/--verbose of the main program, this change makes the otp-cache extension's -f/--force-update option a global one, so that it is accepted at any position and not just before a sub-command.
1 parent cad981a commit 3a64532

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/otp_cache.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ struct Slot {
3737
#[structopt(bin_name = "nitrocli otp-cache")]
3838
struct Args {
3939
/// Always query the slot data even if it is already cached
40-
#[structopt(short, long)]
40+
#[structopt(short, long, global = true)]
4141
force_update: bool,
4242
#[structopt(subcommand)]
4343
cmd: Command,

0 commit comments

Comments
 (0)