summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2016-07-04 16:24:16 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2016-07-05 08:24:04 +0000
commit9ea126374291bfd08e5b4a245dccd57ec33c71d8 (patch)
treedded50619210dc756676c5f244a84fe8672b3410 /bin
parent6fa5abb065111e29eb2f320837ca0418e050b0b4 (diff)
git-qt-merge-mainlines: group the action arguments
This makes it easier to document that you need one of them ! That wasn't obvious before ... Change-Id: Id35ed832721781d26d02fd642162f9ec78821f8c Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/git-qt-merge-mainlines11
1 files changed, 6 insertions, 5 deletions
diff --git a/bin/git-qt-merge-mainlines b/bin/git-qt-merge-mainlines
index 251656d..ed0fece 100755
--- a/bin/git-qt-merge-mainlines
+++ b/bin/git-qt-merge-mainlines
@@ -234,15 +234,16 @@ if __name__== "__main__":
Run from within a work tree of the qt5 super-module, with all relevant
sub-modules checked out (e.g. using qt5/init-repository).
""")
- parser.add_argument('-s', '--status', action="store_true", help='show the status (which patches will be merged)')
- parser.add_argument('-d', '--merge', action="store_true", help='do the merge')
+ group = parser.add_argument_group("Primary action", "Chose one of:")
+ group.add_argument('-s', '--status', action="store_true", help='show the status (which patches will be merged)')
+ group.add_argument('-d', '--merge', action="store_true", help='do the merge')
parser.add_argument('-u', '--super', action="store_true", help='obtain sha1s from supermodule instead of using branch tips')
parser.add_argument('-m', '--modules', help='override the list of modules (eg. -m "qtbase qtdeclarative")')
- parser.add_argument('-l', '--list-modules', action="store_true", help='list the modules to be merged and exit')
- parser.add_argument('--reset', action="store_true", help='reset to origin/to_branch. this is implicit in the merge command')
+ group.add_argument('-l', '--list-modules', action="store_true", help='list the modules to be merged and exit')
+ group.add_argument('--reset', action="store_true", help='reset to origin/to_branch. this is implicit in the merge command')
parser.add_argument('-f', '--branch-from', default='stable', help='from which branch to merge')
parser.add_argument('-t', '--branch-to', default='dev', help='the target branch')
- parser.add_argument('-v', '--version', default='', help='set version in .qmake.conf to given version string')
+ group.add_argument('-v', '--version', default='', help='set version in .qmake.conf to given version string')
parser.add_argument('--mergetool', action="store_true", help='run mergetool for conflicts')
config = parser.parse_args()