@@ -27,7 +27,8 @@ class Snapshots < EmergeCLI::Commands::GlobalOptions
2727 option :base_sha , type : :string , required : false , desc : 'Base SHA'
2828 option :previous_sha , type : :string , required : false , desc : 'Previous SHA'
2929 option :pr_number , type : :string , required : false , desc : 'PR number'
30- option :concurrency , type : :integer , default : 5 , desc : 'Number of concurrency for parallel uploads'
30+ option :concurrency , type : :integer , default : 5 ,
31+ desc : 'Number of concurrency for parallel image uploads when not using batch mode'
3132
3233 option :client_library , type : :string , required : false , values : %w[ swift-snapshot-testing paparazzi roborazzi ] ,
3334 desc : 'Client library used for snapshots'
@@ -36,7 +37,7 @@ class Snapshots < EmergeCLI::Commands::GlobalOptions
3637 option :profile , type : :boolean , default : false , desc : 'Enable performance profiling metrics'
3738
3839 option :batch , type : :boolean , default : true , desc : 'Upload images in batch using zip file'
39-
40+ option :group_delimiter , type : :string , default : '__' , desc : 'Delimiter for group and variant names'
4041 argument :image_paths , type : :array , required : false , desc : 'Paths to folders containing images'
4142
4243 def initialize ( network : nil , git_info_provider : nil )
@@ -119,7 +120,7 @@ def create_client(image_paths)
119120 raise "Unsupported client library: #{ @options [ :client_library ] } "
120121 end
121122 else
122- ClientLibraries ::Default . new ( image_paths )
123+ ClientLibraries ::Default . new ( image_paths , @options [ :group_delimiter ] )
123124 end
124125 end
125126
0 commit comments