bin/convert_dpc_folder.rb in ddr-ingesttools-0.2.1 vs bin/convert_dpc_folder.rb in ddr-ingesttools-0.3.0
- old
+ new
@@ -33,14 +33,19 @@
opts.on('--collection_title [TITLE]', 'Title for collection',
'required if intending to create a collection-creating Standard Ingest') do |v|
options[:collection_title] = v
end
+ opts.on('--admin_set [ADMIN_SET]', 'Admin set for collection',
+ 'required if intending to create a collection-creating Standard Ingest') do |v|
+ options[:admin_set] = v
+ end
+
end
begin
parser.parse!
- mandatory = [ :source, :target, :item_id_length]
+ mandatory = [ :source, :target, :item_id_length ]
missing = mandatory.select{ |param| options[param].nil? }
unless missing.empty?
raise OptionParser::MissingArgument.new(missing.join(', '))
end
rescue OptionParser::InvalidOption, OptionParser::MissingArgument