exe/photoapp in desoto-photoapp-0.3.5 vs exe/photoapp in desoto-photoapp-0.3.6
- old
+ new
@@ -9,10 +9,13 @@
OptionParser.new do |opts|
opts.on("-c", "--config PATH", String, "Path to config file") do |config|
options['config'] = config
end
+ opts.on("-v", "--version", "Version Number") do
+ options['version'] = true
+ end
end.parse!
def update
%w(Reprint Update).each do |app|
system "rm -rf /Applications/#{app}.app"
@@ -42,20 +45,24 @@
update
actions
end
+if options['version']
+ puts Photoapp::VERSION
+ abort
+end
+
if ARGV.first == 'setup'
ARGV.shift
setup
elsif ARGV.first == 'update'
ARGV.shift
update
elsif ARGV.first == 'set-actions'
ARGV.shift
actions
else
-
if ARGV.first == 'process'
ARGV.shift
options['source'] = ARGV.shift
Photoapp::Session.new(options).process
elsif ARGV.first == 'upload'