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
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to change the value of an option before it's frozen:
Beta Was this translation helpful? Give feedback.
All reactions