summaryrefslogtreecommitdiffstats
path: root/lib/puppet/interface.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/interface.rb')
-rw-r--r--lib/puppet/interface.rb21
1 files changed, 1 insertions, 20 deletions
diff --git a/lib/puppet/interface.rb b/lib/puppet/interface.rb
index 10e2ec8d7..6be8b6930 100644
--- a/lib/puppet/interface.rb
+++ b/lib/puppet/interface.rb
@@ -76,26 +76,7 @@ class Puppet::Interface
# splits out this should merge into a module that both the action and face
# include. --daniel 2011-04-17
def synopsis
- output = PrettyPrint.format do |s|
- s.text("puppet #{name} <action>")
- s.breakable
-
- options.each do |option|
- option = get_option(option)
- wrap = option.required? ? %w{ < > } : %w{ [ ] }
-
- s.group(0, *wrap) do
- option.optparse.each do |item|
- unless s.current_group.first?
- s.breakable
- s.text '|'
- s.breakable
- end
- s.text item
- end
- end
- end
- end
+ build_synopsis self.name, '<action>'
end