diff options
author | Dubiousjim <dubiousjim@gmail.com> | 2013-06-30 04:02:18 -0400 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2013-06-30 11:17:21 +0300 |
commit | 927456fd9737c6139d582089006021e167aa17e9 (patch) | |
tree | c27f3abb0288f9659e13f193a080c61482b88c36 /src | |
parent | d035ef60d2f3fcaebce19e169401f439e1f35f26 (diff) | |
download | apk-tools-927456fd9737c6139d582089006021e167aa17e9.tar.gz apk-tools-927456fd9737c6139d582089006021e167aa17e9.tar.bz2 apk-tools-927456fd9737c6139d582089006021e167aa17e9.tar.xz apk-tools-927456fd9737c6139d582089006021e167aa17e9.zip |
Allow "apk search -x" for -e
Diffstat (limited to 'src')
-rw-r--r-- | src/search.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/search.c b/src/search.c index 7ccf98a..c85892b 100644 --- a/src/search.c +++ b/src/search.c @@ -79,6 +79,7 @@ static int search_parse(void *ctx, struct apk_db_options *dbopts, ictx->show_all = 1; break; case 'e': + case 'x': ictx->search_exact = 1; break; case 'o': @@ -166,7 +167,8 @@ static int search_main(void *pctx, struct apk_database *db, struct apk_string_ar static struct apk_option search_options[] = { { 'a', "all", "Show all package versions (instead of latest only)" }, { 'd', "description", "Search package descriptions (implies -a)" }, - { 'e', "exact", "Require exact match (instead of substring match)" }, + { 'x', "exact", "Require exact match (instead of substring match)" }, + { 'e', NULL, "Synonym for -x (deprecated)" }, { 'o', "origin", "Print origin package name instead of the subpackage" }, { 'r', "rdepends", "Print reverse dependencies of package" }, }; |