From 321c95a88c29cd3d021c2f30c25ccf390594567f Mon Sep 17 00:00:00 2001 From: Scott Lamb Date: Sat, 11 Feb 2023 12:19:59 -0800 Subject: [PATCH] username used to be positional; switch back --- server/src/cmds/login.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/server/src/cmds/login.rs b/server/src/cmds/login.rs index 4acc4f3..bf154d0 100644 --- a/server/src/cmds/login.rs +++ b/server/src/cmds/login.rs @@ -59,8 +59,8 @@ pub struct Args { )] session_flags: Vec, - /// 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();