Add ability to use root flags after subcommands

This commit is contained in:
bytedream 2023-12-09 17:22:04 +01:00
parent 77609be598
commit f9e431e181
2 changed files with 8 additions and 9 deletions

View file

@ -48,13 +48,13 @@ pub struct LoginMethod {
#[arg(
help = "Login with credentials (email and password). Must be provided as email:password"
)]
#[arg(long)]
#[arg(global = true, long)]
pub credentials: Option<String>,
#[arg(help = "Login with the etp-rt cookie")]
#[arg(
long_help = "Login with the etp-rt cookie. This can be obtained when you login on crunchyroll.com and extract it from there"
)]
#[arg(long)]
#[arg(global = true, long)]
pub etp_rt: Option<String>,
#[arg(help = "Login anonymously / without an account")]
#[arg(long, default_value_t = false)]