Sha256: 1b8f552921a51e94e588d81c27969455ef83cd07d82fc78532f5c348ed76c9ef

Contents?: true

Size: 956 Bytes

Versions: 27

Compression:

Stored size: 956 Bytes

Contents

usage 'nanoc command [options] [arguments]'
summary 'Nanoc, a static site compiler written in Ruby'

opt :l, :color, 'enable color' do
  $stdout.remove_stream_cleaner(Nanoc::CLI::StreamCleaners::ANSIColors)
  $stderr.remove_stream_cleaner(Nanoc::CLI::StreamCleaners::ANSIColors)
end

opt :d, :debug, 'enable debugging' do
  Nanoc::CLI.debug = true
end

opt :h, :help, 'show the help message and quit' do |_value, cmd|
  puts cmd.help
  exit 0
end

opt :C, :'no-color', 'disable color' do
  $stdout.add_stream_cleaner(Nanoc::CLI::StreamCleaners::ANSIColors)
  $stderr.add_stream_cleaner(Nanoc::CLI::StreamCleaners::ANSIColors)
end

opt :V, :verbose, 'make output more detailed' do
  Nanoc::CLI::Logger.instance.level = :low
end

opt :v, :version, 'show version information and quit' do
  puts Nanoc.version_information
  exit 0
end

opt :w, :warn, 'enable warnings' do
  $-w = true
end

run do |_opts, _args, cmd|
  cmd.command_named('compile').run([])
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
nanoc-4.3.4 lib/nanoc/cli/commands/nanoc.rb
nanoc-4.3.3 lib/nanoc/cli/commands/nanoc.rb
nanoc-4.3.2 lib/nanoc/cli/commands/nanoc.rb
nanoc-4.3.1 lib/nanoc/cli/commands/nanoc.rb
nanoc-4.3.0 lib/nanoc/cli/commands/nanoc.rb
nanoc-4.2.4 lib/nanoc/cli/commands/nanoc.rb
nanoc-4.2.3 lib/nanoc/cli/commands/nanoc.rb
nanoc-4.2.2 lib/nanoc/cli/commands/nanoc.rb
nanoc-4.2.1 lib/nanoc/cli/commands/nanoc.rb
nanoc-4.2.0 lib/nanoc/cli/commands/nanoc.rb
nanoc-4.1.6 lib/nanoc/cli/commands/nanoc.rb
nanoc-4.2.0b1 lib/nanoc/cli/commands/nanoc.rb
nanoc-4.1.5 lib/nanoc/cli/commands/nanoc.rb
nanoc-4.1.4 lib/nanoc/cli/commands/nanoc.rb
nanoc-4.1.3 lib/nanoc/cli/commands/nanoc.rb
nanoc-4.1.2 lib/nanoc/cli/commands/nanoc.rb
nanoc-4.1.1 lib/nanoc/cli/commands/nanoc.rb
nanoc-4.1.0 lib/nanoc/cli/commands/nanoc.rb
nanoc-4.1.0rc2 lib/nanoc/cli/commands/nanoc.rb
nanoc-4.1.0rc1 lib/nanoc/cli/commands/nanoc.rb