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

View File

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