--help: move -V option up

Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
Nicolas Sebrecht 2016-07-09 01:28:51 +02:00
parent 709a5b3f91
commit 3f059c638a

View File

@ -88,6 +88,12 @@ class OfflineImap(object):
description="%s.\n\n%s"% (offlineimap.__copyright__, description="%s.\n\n%s"% (offlineimap.__copyright__,
offlineimap.__license__) offlineimap.__license__)
) )
parser.add_option("-V",
action="store_true", dest="version",
default=False,
help="show full version infos")
parser.add_option("--dry-run", parser.add_option("--dry-run",
action="store_true", dest="dryrun", action="store_true", dest="dryrun",
default=False, default=False,
@ -163,11 +169,6 @@ class OfflineImap(object):
action="store_true", dest="mbnames_prune", default=False, action="store_true", dest="mbnames_prune", default=False,
help="remove mbnames entries for accounts not in accounts") help="remove mbnames entries for accounts not in accounts")
parser.add_option("-V",
action="store_true", dest="version",
default=False,
help="show full version infos")
(options, args) = parser.parse_args() (options, args) = parser.parse_args()
globals.set_options (options) globals.set_options (options)