myapp path / to / file
The answer is in two parts:
1) myapp ... in order to use an executable file other than thor, you will need to use the thor / runner library.
2) path/to/file can be executed in the initialization method, for example:
class Something < Thor def initialize(*args) super case @path when /something$/; self.class.new([@path],options).do_run end end desc 'do_run', "do something" argument :path, :banner=>"path/to/file", :optional=>true def do_run
source share