about summary refs log tree commit diff
path: root/xpkg
diff options
context:
space:
mode:
Diffstat (limited to 'xpkg')
-rwxr-xr-xxpkg3
1 files changed, 2 insertions, 1 deletions
diff --git a/xpkg b/xpkg
index 13f34df..08002f7 100755
--- a/xpkg
+++ b/xpkg
@@ -7,10 +7,11 @@ filter1='s/^...\? //'
 filter2='s/-[^- ]* .*//'
 mode="--search="
 
-while getopts R:vVmOHDLa flag; do
+while getopts R:r:vVmOHDLa flag; do
 	case "$flag" in
 		D) exec comm -23 <(xpkg | sort) <(xpkg -a | sort);;
 		L) mode="--regex -p repository -s /"; filter0='/:\/\//d';;
+		r) flags="$flags -r $OPTARG";;
 		R) flags="$flags -i --repository=$OPTARG";;
 		m|O|H) mode="-$flag"; filter0=; filter1=; filter2='s/-[^-]*$//';;
 		a) flags="$flags -R"; filter0=;;