OSDN Git Service

Allow multiple argument to upload.
[osdn-codes/osdn-cli.git] / lib / osdn / cli / command / frs_upload.rb
index 97c1793..ae112c3 100644 (file)
@@ -46,7 +46,13 @@ module OSDN; module CLI; module Command
         end
       end
 
-      @target_dir = Pathname.new(ARGV.shift || '.')
+      (ARGV.empty? ? ['.'] : ARGV).each do |d|
+        @target_dir = Pathname.new(d)
+        process_target
+      end
+    end
+
+    def process_target
       proj_info = api.get_project target_proj # check project existance
 
       vars = load_variables(@target_dir)