Sha256: 1b18e2ab4fb9d68cc55cb09edd526ce08423c111b147bc17542d604911e6b187

Contents?: true

Size: 1019 Bytes

Versions: 7

Compression:

Stored size: 1019 Bytes

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} copies the input file to backup directory.
    Optimized to be used with other *phtools* via pipes.
    Example: phls | #{tool_name} | phrename ...

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

    Options:
      -b DIR --backup=DIR  Sets the backup directory [Default: ./backup]
      -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/phbackup
phtools-0.17.0 exe/phbackup
phtools-0.16.1 exe/phbackup
phtools-0.16.0 exe/phbackup
phtools-0.15.1 exe/phbackup
phtools-0.15.0 exe/phbackup
phtools-0.14.0 exe/phbackup