Bug 56923 - [Patch] Make command line options consistent (single vs double dash)
Summary: [Patch] Make command line options consistent (single vs double dash)
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: App/xrandr (show other bugs)
Version: git
Hardware: Other All
: medium trivial
Assignee: Keith Packard
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2012-11-09 14:33 UTC by Thomas
Modified: 2013-07-13 07:05 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Adding double-dash long options --display and --help (2.43 KB, text/plain)
2012-11-09 14:33 UTC, Thomas
no flags Details

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.