summaryrefslogtreecommitdiffstats
path: root/lib/puppet/string/option.rb
diff options
context:
space:
mode:
authorDaniel Pittman <daniel@puppetlabs.com>2011-03-30 16:58:17 -0700
committerDaniel Pittman <daniel@puppetlabs.com>2011-04-04 10:19:53 -0700
commit423fe1f6b7c5bc0ca9b53a87f636668514802ad7 (patch)
tree2c6c281c22b240cf9e6e48e467ea05f522aa4c22 /lib/puppet/string/option.rb
parent512778f95058a423a3d2e08d1803eb4a90fb975a (diff)
downloadpuppet-423fe1f6b7c5bc0ca9b53a87f636668514802ad7.tar.gz
puppet-423fe1f6b7c5bc0ca9b53a87f636668514802ad7.tar.xz
puppet-423fe1f6b7c5bc0ca9b53a87f636668514802ad7.zip
(#6749) string cli base: implement preinit CLI parsing
In order to identify the full set of options we need to know the action that is being invoked; that actually requires a pre-processing step to identify that out of the global options. Notably, our spec is that options can be to the right of their declaration point, but not to the left: that means that we can now extract the full set of options, and interact with the standard Puppet option handling code, resulting in at least vaguely saner behaviour... Reviewed-By: Pieter van de Bruggen <pieter@puppetlabs.com>
Diffstat (limited to 'lib/puppet/string/option.rb')
-rw-r--r--lib/puppet/string/option.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/puppet/string/option.rb b/lib/puppet/string/option.rb
index 70d62a01f..e7b6f187c 100644
--- a/lib/puppet/string/option.rb
+++ b/lib/puppet/string/option.rb
@@ -2,6 +2,7 @@ class Puppet::String::Option
attr_reader :parent
attr_reader :name
attr_reader :aliases
+ attr_reader :optparse
attr_accessor :desc
def takes_argument?