diff options
-rwxr-xr-x | xpkg | 3 | ||||
-rw-r--r-- | xtools.1 | 3 |
2 files changed, 5 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=;; diff --git a/xtools.1 b/xtools.1 index a1d5590..f72a1df 100644 --- a/xtools.1 +++ b/xtools.1 @@ -164,12 +164,15 @@ quiet mode, show package names only .Pp .Nm xpkg .Op Fl R Ar repo +.Op Fl r Ar rootdir .Op Fl amOHDvV .Nd convenient package lister .Bl -tag -offset 2n -width 2n -compact .It Fl R Ar repo consider only packages from .Ar repo +.It Fl r Ar rootdir +specifies a full path for the target root directory .It Fl a list all packages (default: only installed) .It Fl m |