Skip to content

Commit

Permalink
Merge branch 'e'
Browse files Browse the repository at this point in the history
  • Loading branch information
jimweirich committed Aug 11, 2008
2 parents a892ea2 + 0466667 commit e28a3e9
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions lib/rake.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2091,6 +2091,21 @@ def handle_options
options.show_task_pattern = Regexp.new(value || '')
}
],
['--execute', '-e CODE', "Execute some Ruby code and exit.",
lambda { |value|
eval(value)
exit
}
],
['--execute-print', '-p CODE', "Execute some Ruby code, print, then exit.",
lambda { |value|
puts eval(value)
exit
}
],
['--execute-continue', '-E', "Execute some Ruby code, then run tasks.",
lambda { |value| eval(value) }
],
['--rakefile', '-f [FILE]', "Use FILE as the rakefile.",
lambda { |value|
value ||= ''
Expand Down

0 comments on commit e28a3e9

Please sign in to comment.