diff options
Diffstat (limited to 'usr.sbin/pkg_install/delete/main.c')
-rw-r--r-- | usr.sbin/pkg_install/delete/main.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.sbin/pkg_install/delete/main.c b/usr.sbin/pkg_install/delete/main.c index dcac1d6..c75d73a 100644 --- a/usr.sbin/pkg_install/delete/main.c +++ b/usr.sbin/pkg_install/delete/main.c @@ -28,7 +28,7 @@ __FBSDID("$FreeBSD$"); #include "lib.h" #include "delete.h" -static char Options[] = "adDfGhinp:rvx"; +static char Options[] = "adDfGhinp:rvxX"; char *Prefix = NULL; Boolean CleanDirs = FALSE; @@ -88,6 +88,10 @@ main(int argc, char **argv) MatchType = MATCH_REGEX; break; + case 'X': + MatchType = MATCH_EREGEX; + break; + case 'i': Interactive = TRUE; break; @@ -151,7 +155,7 @@ static void usage() { fprintf(stderr, "%s\n%s\n", - "usage: pkg_delete [-dDfGinrvx] [-p prefix] pkg-name ...", + "usage: pkg_delete [-dDfGinrvxX] [-p prefix] pkg-name ...", " pkg_delete -a [flags]"); exit(1); } |