Sha256: b95d34febb6dadf9c010f1e2ddfd132bff5407485093bad4be22d340f44c7a5b

Contents?: true

Size: 387 Bytes

Versions: 3

Compression:

Stored size: 387 Bytes

Contents

#!/usr/bin/env ruby

require 'yaml_extend'

arg = ARGV[0]

if %w[help -h --help].include?(arg) || arg.nil? || arg == ''
  puts <<-TEXT
    
    yaml_extend #{YamlExtend::VERSION}
    https://github.com/magynhard/yaml_extend

    yaml_extend -h --help     # show this info
    yaml_extend <file>        # parse and output given file

  TEXT
else
  puts YAML.ext_load_file(arg).to_yaml
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
yaml_extend-1.3.2 bin/yaml_extend
yaml_extend-1.3.1 bin/yaml_extend
yaml_extend-1.3.0 bin/yaml_extend