Skip to content

Commit

Permalink
Add --profile option
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdefreyne committed Jul 9, 2016
1 parent 84dab0a commit 58e1853
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/nanoc/cli/commands/compile.rb
Expand Up @@ -14,6 +14,7 @@
SKIP - The item was deemed not outdated and was therefore not recompiled
EOS
flag nil, :profile, 'profile compilation' if Nanoc::Feature.enabled?('PROFILER')

module Nanoc::CLI::Commands
class Compile < ::Nanoc::CLI::CommandRunner
Expand Down Expand Up @@ -356,7 +357,7 @@ class StackProfProfiler < Listener

# @see Listener#enable_for?
def self.enable_for?(_command_runner)
Nanoc::Feature.enabled?('PROFILER')
command_runner.options.fetch(:profile, false)
end

# @see Listener#start
Expand Down

0 comments on commit 58e1853

Please sign in to comment.