Allow -w option as short for --wraps in define_function

Fixes #2772
This commit is contained in:
ridiculousfish
2016-02-27 17:47:23 -08:00
parent 6cb48c6380
commit 584cca59bf

View File

@@ -1982,7 +1982,7 @@ int define_function(parser_t &parser, io_streams_t &streams, const wcstring_list
// The leading - here specifies RETURN_IN_ORDER
int opt = w.wgetopt_long(argc,
argv,
L"-d:s:j:p:v:e:haSV:",
L"-d:s:j:p:v:e:w:haSV:",
long_options,
&opt_index);
if (opt == -1)