Sha256: e4b071b4c6b689484bfcccddbb5a5d73d1bcde69438b69f9aa9bb277e364d438

Contents?: true

Size: 486 Bytes

Versions: 4

Compression:

Stored size: 486 Bytes

Contents

# Option to bootstrap directories and then exit
# @param parser [OptionParser object] The OptionParser argument
# @param options [Hash] Options hash being constructed; this is modified in this method.
OctocatalogDiff::CatalogDiff::Cli::Options::Option.newoption(:bootstrap_then_exit) do
  has_weight 70

  def parse(parser, options)
    parser.on('--bootstrap-then-exit', 'Bootstrap from-dir and/or to-dir and then exit') do
      options[:bootstrap_then_exit] = true
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
octocatalog-diff-0.5.6 lib/octocatalog-diff/catalog-diff/cli/options/bootstrap_then_exit.rb
octocatalog-diff-0.5.4 lib/octocatalog-diff/catalog-diff/cli/options/bootstrap_then_exit.rb
octocatalog-diff-0.5.3 lib/octocatalog-diff/catalog-diff/cli/options/bootstrap_then_exit.rb
octocatalog-diff-0.5.1 lib/octocatalog-diff/catalog-diff/cli/options/bootstrap_then_exit.rb