[web] Properly parse prefstring in CLI args

This commit is contained in:
Emi Simpson 2021-10-30 10:45:17 -04:00
parent c4b8b55414
commit 6e1afdb4b6
Signed by: Emi
GPG Key ID: A12F2C2FFDC3D847
1 changed files with 2 additions and 1 deletions

View File

@ -1,3 +1,4 @@
use pronouns_today::UserPreferences;
use std::fs::OpenOptions;
use std::fs::File;
use std::io::Write;
@ -66,7 +67,7 @@ pub struct Run {
#[argh(option)]
/// default pronoun probabilites (formatted as a prefstring, like the ones in the
/// used in the custom URLs, e.g. "acaqeawdym")
pub default_prefstr: Option<String>,
pub default_prefstr: Option<UserPreferences>,
}
impl Run {