Sha256: 0a6e189481f228834c00738f70e82af54018f74734823239a31ebcc75009d9e1

Contents?: true

Size: 276 Bytes

Versions: 1

Compression:

Stored size: 276 Bytes

Contents

module ArgsSanitizer
  def sanitize_args(args)
    if args.count != 2
      puts 'Wrong number of arguments.'
      puts 'Correct usage: media-runner series SERIES_FOLDER_NAME EPISODE_NUMBER'
      exit 1
    else
      { series: args[0], episode: args[1] }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
media-runner-1.0.0 lib/media/runner/app/args_sanitizer.rb