mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-18 20:11:15 -03:00
Mark short_options as const everywhere
These were needlessly mutable file-scoped variables.
This commit is contained in:
@@ -37,7 +37,7 @@ struct function_cmd_opts_t {
|
||||
|
||||
// This command is atypical in using the "+" (REQUIRE_ORDER) option for flag parsing.
|
||||
// This is needed due to the semantics of the -a/--argument-names flag.
|
||||
static const wchar_t *short_options = L"+:a:d:e:hj:p:s:v:w:SV:";
|
||||
static const wchar_t *const short_options = L"+:a:d:e:hj:p:s:v:w:SV:";
|
||||
static const struct woption long_options[] = {{L"description", required_argument, NULL, 'd'},
|
||||
{L"on-signal", required_argument, NULL, 's'},
|
||||
{L"on-job-exit", required_argument, NULL, 'j'},
|
||||
|
||||
Reference in New Issue
Block a user