comparison mercurial/dispatch.py @ 15020:607f1434501d

help: drop with_version If --version is specified, we print the version and exit (as documented).
author Matt Mackall <mpm@selenic.com>
date Thu, 04 Aug 2011 15:08:41 -0500
parents f4522df38c65
children 1e45b92f4fb2
comparison
equal deleted inserted replaced
15017:f4522df38c65 15020:607f1434501d
620 620
621 if cmdoptions.get('insecure', False): 621 if cmdoptions.get('insecure', False):
622 for ui_ in uis: 622 for ui_ in uis:
623 ui_.setconfig('web', 'cacerts', '') 623 ui_.setconfig('web', 'cacerts', '')
624 624
625 if options['version']:
626 return commands.version_(ui)
625 if options['help']: 627 if options['help']:
626 return commands.help_(ui, cmd, options['version']) 628 return commands.help_(ui, cmd)
627 elif options['version']:
628 return commands.version_(ui)
629 elif not cmd: 629 elif not cmd:
630 return commands.help_(ui, 'shortlist') 630 return commands.help_(ui, 'shortlist')
631 631
632 repo = None 632 repo = None
633 cmdpats = args[:] 633 cmdpats = args[:]