##// END OF EJS Templates
help: always show command help with -h (issue4240)...
Matt Mackall -
r21961:af15de67 stable
parent child Browse files
Show More
@@ -766,7 +766,7 b' def _dispatch(req):'
766 if options['version']:
766 if options['version']:
767 return commands.version_(ui)
767 return commands.version_(ui)
768 if options['help']:
768 if options['help']:
769 return commands.help_(ui, cmd)
769 return commands.help_(ui, cmd, command=True)
770 elif not cmd:
770 elif not cmd:
771 return commands.help_(ui, 'shortlist')
771 return commands.help_(ui, 'shortlist')
772
772
@@ -862,6 +862,17 b' test deprecated option is hidden with tr'
862 *"hg -v help debugoptDEP"* (glob)
862 *"hg -v help debugoptDEP"* (glob)
863 #endif
863 #endif
864
864
865 Test commands that collide with topics (issue4240)
866
867 $ hg config -hq
868 hg config [-u] [NAME]...
869
870 show combined config settings from all hgrc files
871 $ hg showconfig -hq
872 hg config [-u] [NAME]...
873
874 show combined config settings from all hgrc files
875
865 Test a help topic
876 Test a help topic
866
877
867 $ hg help revs
878 $ hg help revs
General Comments 0
You need to be logged in to leave comments. Login now