Bug 56923 - Make command line options consistent (single vs double dash)
authorThomas <fischer@unix-ag.uni-kl.de>
Fri, 9 Nov 2012 14:33:08 +0000 (14:33 +0000)
committerAlan Coopersmith <alan.coopersmith@oracle.com>
Sat, 13 Jul 2013 07:02:17 +0000 (00:02 -0700)
commitf53d8511d26a26e9bd6b1bc665f6283f1efd98d9
tree9ba18d489c51a39ff52a18dac065127dca425e59
parentbd1502f50f0c230798bdce99dec6efc76791c024
Bug 56923 - Make command line options consistent (single vs double dash)

Most of xrandr's command line options follow the system of single
dashes for single character options (e.g. "-v") and double dashes for
long options ("--version").  The only exceptions are "-display" and
"-help", most likely for historical reasons.  To make the behavior
consistent across all options, the following patch adds "--display"
and "--help" as alternatives to the current inconsistency.  The man
page got updated as well, recommending double-dash variants for both
options. The old behavior is still supported, so the patch should not
break any existing usage/script.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
man/xrandr.man
xrandr.c