[pacman-dev] [PATCH 05/11] pacdiff: streamline option syntax with makepkg

Gordian Edenhofer gordian.edenhofer at gmail.com
Thu Sep 29 10:23:05 UTC 2016


Allow for '-m' as abbreviation for '--nocolor'.

Signed-off-by: Gordian Edenhofer <gordian.edenhofer at gmail.com>
---
 contrib/pacdiff.sh.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/contrib/pacdiff.sh.in b/contrib/pacdiff.sh.in
index bed9ea3..8336706 100644
--- a/contrib/pacdiff.sh.in
+++ b/contrib/pacdiff.sh.in
@@ -96,7 +96,7 @@ cmd() {
 }
 
 # Parse arguments
-OPT_SHORT='lfpoVh'
+OPT_SHORT='lfpomVh'
 OPT_LONG=('locate' 'find' 'pacmandb' 'output' 'nocolor' 'version' 'help')
 if ! parseopts "$OPT_SHORT" "${OPT_LONG[@]}" -- "$@"; then
 	usage
@@ -115,7 +115,7 @@ while :; do
 			USE_PACDB=1;;
 		-o|--output)
 			OUTPUTONLY=1;;
-		--nocolor)
+		-m|--nocolor)
 			USE_COLOR='n';;
 		-V|--version)
 			version
-- 
2.10.0


More information about the pacman-dev mailing list