hook the assing value of options #860
edusantana
started this conversation in
Ideas
Replies: 1 comment
-
Using temp variables should work here right? method_option :input_dir, :aliases => '-i', :default => '.'
method_option :output_dir, :aliases => '-o', :default => '.'
desc "exec", "to something"
def exec
output_dir = File.absolute_path(options[:output_dir])
Dir.chdir(options[:input_dir]) do
...
end
end |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to change the value of an option before it's frozen:
Beta Was this translation helpful? Give feedback.
All reactions