Fix "fish --private" regression

Introduced in eacbd6156 (Port and adopt main written in Rust, 2023-08-18).

Fixes #10146
This commit is contained in:
Johannes Altmanninger 2023-12-09 09:34:11 +01:00
parent f49efcc691
commit f118dbc4b9

View File

@ -370,7 +370,7 @@ fn fish_parse_opt(args: &mut [WString], opts: &mut FishCmdOpts) -> usize {
required_argument,
PROFILE_STARTUP_ARG,
),
wopt(L!("private"), required_argument, 'P'),
wopt(L!("private"), no_argument, 'P'),
wopt(L!("help"), no_argument, 'h'),
wopt(L!("version"), no_argument, 'v'),
];