Sha256: bbc6f62dc5960b923f5d7ddabd4aa74a5ede85486bb3f3d7df823d49e18470e5
Contents?: true
Size: 1.3 KB
Versions: 7
Compression:
Stored size: 1.3 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} moves input file(s) into TARGET_FOLDER. If TARGET_FOLDER is not set - current folder (.) will be used as a target. If --arrange option is set it separates photo files, RAW photo files and VIDEO files to corresponding subfolders. phtools friendly files: #{file_type * ','} Optimized to be used with other *phtools* via pipes. Example: phls | phrename -a anb | #{tool_name} -a target/folder Usage: #{tool_name} [-D] [-a] [TARGET_FOLDER] #{tool_name} -h | --help #{tool_name} -v | --version Options: -a --arrange Move photos to TARGET_FOLDER, videos to TARGET_FOLDER/VIDEO raw-files to TARGET_FOLDER/RAW -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/phmove |
phtools-0.17.0 | exe/phmove |
phtools-0.16.1 | exe/phmove |
phtools-0.16.0 | exe/phmove |
phtools-0.15.1 | exe/phmove |
phtools-0.15.0 | exe/phmove |
phtools-0.14.0 | exe/phmove |