summaryrefslogtreecommitdiff
path: root/lib/mixlib/cli.rb
diff options
context:
space:
mode:
authorJohn Keiser <jkeiser@opscode.com>2013-12-05 09:54:20 -0800
committerJohn Keiser <jkeiser@opscode.com>2013-12-05 09:54:20 -0800
commit61cf97c3fcfb072bdb0d54cd71de0bdb2f482bd0 (patch)
treee46c6962a95a52104b33f87ded6246bd26fbe798 /lib/mixlib/cli.rb
parent7a7271a72a857b500c06ee0034ec93b74dba69b0 (diff)
downloadmixlib-cli-jk/preserve-name-args.tar.gz
Add cli_arguments--remaining arguments after stripping CLI optionsjk/preserve-name-args
Diffstat (limited to 'lib/mixlib/cli.rb')
-rw-r--r--lib/mixlib/cli.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/mixlib/cli.rb b/lib/mixlib/cli.rb
index bdaabdb..aa0b70b 100644
--- a/lib/mixlib/cli.rb
+++ b/lib/mixlib/cli.rb
@@ -128,6 +128,9 @@ module Mixlib
# hash.
attr_accessor :default_config
+ # Any arguments which were not parsed and placed in "config"--the leftovers.
+ attr_accessor :cli_arguments
+
# Banner for the option parser. If the option parser is printed, e.g., by
# `puts opt_parser`, this string will be used as the first line.
attr_accessor :banner
@@ -235,6 +238,7 @@ module Mixlib
end
end
+ @cli_arguments = argv
argv
end