username used to be positional; switch back

This commit is contained in:
Scott Lamb 2023-02-11 12:19:59 -08:00
parent f7718edc7f
commit 321c95a88c
No known key found for this signature in database
1 changed files with 2 additions and 3 deletions

View File

@ -59,8 +59,8 @@ pub struct Args {
)]
session_flags: Vec<SessionFlag>,
/// Create the session for this username.
#[bpaf(argument("USERNAME"))]
/// Username to create a session for.
#[bpaf(positional("USERNAME"))]
username: String,
}
@ -161,7 +161,6 @@ mod tests {
"{\"viewVideo\": true}",
"--session-flags",
"http-only, same-site",
"--username",
"slamb",
]))
.unwrap();