Bug 56923

Summary: [Patch] Make command line options consistent (single vs double dash)
Product: xorg Reporter: Thomas <fischer>
Component: App/xrandrAssignee: Keith Packard <keithp>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: trivial    
Priority: medium Keywords: patch
Version: git   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Adding double-dash long options --display and --help none

Description Thomas 2012-11-09 14:33:08 UTC
Created attachment 69815 [details]
Adding double-dash long options --display and --help

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.
Comment 1 Alan Coopersmith 2013-07-13 07:05:46 UTC
Thanks - patch pushed to git master for the next xrandr release:

To ssh://git.freedesktop.org/git/xorg/app/xrandr
   bd1502f..f53d851  master -> master

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.