aboutsummaryrefslogtreecommitdiffhomepage
path: root/builtin.cpp
diff options
context:
space:
mode:
authorGravatar Kevin Ballard <kevin@sb.org>2014-07-10 19:16:32 -0700
committerGravatar Kevin Ballard <kevin@sb.org>2014-07-13 19:11:29 -0700
commit72e8489d50d749c86d5b57609bb0c4d83a03b41a (patch)
treed3688652098c5219a51a1b9a8610ebddaaa3bcc7 /builtin.cpp
parentcfa13ed84c32ce3330041a54de392caed83f7ac5 (diff)
command: Rename -p/--path flag to -s/--search
Diffstat (limited to 'builtin.cpp')
-rw-r--r--builtin.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/builtin.cpp b/builtin.cpp
index 2d3eb749..6f7cc33c 100644
--- a/builtin.cpp
+++ b/builtin.cpp
@@ -1067,7 +1067,7 @@ static int builtin_command(parser_t &parser, wchar_t **argv)
static const struct woption
long_options[] =
{
- { L"path", no_argument, 0, 'p' },
+ { L"search", no_argument, 0, 's' },
{ L"help", no_argument, 0, 'h' },
{ 0, 0, 0, 0 }
};
@@ -1078,7 +1078,7 @@ static int builtin_command(parser_t &parser, wchar_t **argv)
int opt = wgetopt_long(argc,
argv,
- L"ph",
+ L"svh",
long_options,
&opt_index);
if (opt == -1)
@@ -1100,7 +1100,8 @@ static int builtin_command(parser_t &parser, wchar_t **argv)
builtin_print_help(parser, argv[0], stdout_buffer);
return STATUS_BUILTIN_OK;
- case 'p':
+ case 's':
+ case 'v':
print_path=1;
break;