mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-01-13 07:53:22 -05:00
username used to be positional; switch back
This commit is contained in:
parent
f7718edc7f
commit
321c95a88c
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user