bin/sushi_fabric in sushi_fabric-0.8.1 vs bin/sushi_fabric in sushi_fabric-0.8.2
- old
+ new
@@ -1,8 +1,8 @@
#!/usr/bin/env ruby
# encoding: utf-8
-# Version = '20170608-164804'
+# Version = '20170908-105900'
require 'sushi_fabric'
opt = OptionParser.new do |o|
o.banner = <<-EOT
@@ -19,10 +19,11 @@
o.on(:project, '1001', '-p project', '--project', String, 'Project Number (default: 1001)')
o.on(:user, 'sushi_lover', '-u user', '--user', String, 'Submit user (default: sushi_lover)')
o.on(:load_path, '-I load_path', '--load_path', 'Add path where SushiApp class is located (default: ./lib)')
o.on(:next_dataset_name, '-n next_dataset_name', '--next_dataset_name', 'Next DataSet Name (default: Analysis_Category+ID+Date )')
o.on(:off_bfab, '-f', '--off_bfab', 'Do NOT register the dataset in BFabric (default: false, namely register in BFabric)')
+ o.on(:mango_run_name, '-g mango_run_name', '--mango_run_name', 'ManGO RunName_oBFabricID')
o.parse!(ARGV)
end
opt.project = 'p' + opt.project
if File.exist?('lib')
$: << 'lib'
@@ -71,9 +72,12 @@
if opt.dataset_name
usecase.dataset_name = opt.dataset_name
end
if opt.next_dataset_name
usecase.next_dataset_name = opt.next_dataset_name
+end
+if opt.mango_run_name
+ usecase.mango_run_name = opt.mango_run_name
end
if opt.run_mode
usecase.run
else
usecase.test_run