diff hgext/show.py @ 31945:02c3b1f396de

show: make template option actually show up in help Previously, the --template/-T option didn't show up in help because it's marked as experimental. It's not really experimental for show, and its quite important for show's funcationality, so let's make sure it always shows up.
author Ryan McElroy <rmcelroy@fb.com>
date Thu, 13 Apr 2017 03:17:53 -0700
parents 99bc93147d87
children 0bb157bebb43
line wrap: on
line diff
--- a/hgext/show.py	Wed Apr 12 20:31:15 2017 -0700
+++ b/hgext/show.py	Thu Apr 13 03:17:53 2017 -0700
@@ -18,7 +18,6 @@
 from mercurial.node import nullrev
 from mercurial import (
     cmdutil,
-    commands,
     error,
     formatter,
     graphmod,
@@ -58,7 +57,14 @@
 
 showview = showcmdfunc()
 
-@command('show', commands.formatteropts, _('VIEW'))
+@command('show', [
+    # TODO: Switch this template flag to use commands.formatteropts if
+    # 'hg show' becomes stable before --template/-T is stable. For now,
+    # we are putting it here without the '(EXPERIMENTAL)' flag because it
+    # is an important part of the 'hg show' user experience and the entire
+    # 'hg show' experience is experimental.
+    ('T', 'template', '', ('display with template'), _('TEMPLATE')),
+    ], _('VIEW'))
 def show(ui, repo, view=None, template=None):
     """show various repository information