lib/tlapse/cli/alpha.rb in tlapse-0.6.2 vs lib/tlapse/cli/alpha.rb in tlapse-0.6.3
- old
+ new
@@ -1,6 +1,7 @@
require "thor"
+require "rainbow"
module Tlapse::CLI
class Alpha < Thor
desc "serve", "Start a drb server via which photo capturing may be performed remotely"
option :host,
@@ -39,23 +40,23 @@
if video.outfile_exists?
if options[:force]
FileUtils.rm video.outfile
puts "Removed file #{video.outfile}"
else
- raise "#{video.outfile} exists. Use -f to overwrite or " \
+ Tlapse::Logger.error! "#{video.outfile} exists. Use -f to overwrite or " \
"-o to specify a different output file."
end
end
video.create!
end
- desc "normalize", "Cannonically organize pictures in the current directory"
+ desc "organize", "Cannonically organize pictures in the current directory"
option :dry_run,
desc: "Print out what would change without actually changing anything",
type: :boolean,
default: false
- def normalize
- Tlapse::Util.normalize! dry_run: options[:dry_run]
+ def organize
+ Tlapse::Util.organize! dry_run: options[:dry_run]
end
end
end