Skip to content

Commit

Permalink
Do not parse options after "run" argument, to avoid conflicts.
Browse files Browse the repository at this point in the history
  • Loading branch information
rasky committed Jan 17, 2015
1 parent 6b66898 commit bc44afc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/foreman/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ def check
desc "run COMMAND [ARGS...]", "Run a command using your application's environment"

method_option :env, :type => :string, :aliases => "-e", :desc => "Specify an environment file to load, defaults to .env"
stop_on_unknown_option! :run

def run(*args)
load_environment!
Expand Down

0 comments on commit bc44afc

Please sign in to comment.