Sha256: 3b9e960ef43723e2d8e2e9d6c39811ff418cd950b21ec943b2e9526c5f01635d

Contents?: true

Size: 1.34 KB

Versions: 7

Compression:

Stored size: 1.34 KB

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true
# encoding: UTF-8

# (c) ANB Andrew Bizyaev

module PhTools
  tool_name = File.basename(__FILE__)
  require tool_name.to_s

  file_type = FILE_TYPE_IMAGE + FILE_TYPE_VIDEO + FILE_TYPE_AUDIO
  usage = <<~DOCOPT
    ***************************************************
    phtools - *Keep Your Photos In Order* (c) ANB
    ***************************************************
      #{tool_name} extracts the list of tags stored inside the given file.

      #{tool_name} acts as a 'sink' program meaning it expects the input files
    to be passed to STDIN, does its job on the input files and produces no useful
    (for other pipe-optimized programs) output.
    In other words this command is intended to be used with other programs
    connected via input pipes as a last command in the pipe chain, e.g.:
      phls | #{tool_name}

    This program uses external utility ExifTool created by Phil Harvey
    (http://www.sno.phy.queensu.ca/~phil/exiftool/).

    Usage:
      #{tool_name} [-f] [-D]
      #{tool_name} -h | --help
      #{tool_name} -v | --version

    Options:
      -f --full_dump  Print all tags
      -D --debug      Turn on debugging (verbose) mode
      -h --help       Show this screen.
      -v --version    Show version.
  DOCOPT

  PhTools.const_get(tool_name.capitalize).new(usage, file_type).run!
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
phtools-0.18.0 exe/phgettags
phtools-0.17.0 exe/phgettags
phtools-0.16.1 exe/phgettags
phtools-0.16.0 exe/phgettags
phtools-0.15.1 exe/phgettags
phtools-0.15.0 exe/phgettags
phtools-0.14.0 exe/phgettags