52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# File 'lib/nfagent/config.rb', line 52
def process_options
parse_options do |opts|
opts.on("-k", "--client-key [key]", "Service client key") do |key|
Config.client_key = key
end
opts.on("-l", "--debug-log [log-file]", "Debug Log File") do |log|
Config.log_file = log
end
opts.on("-D", "--dump-dir [dir]", "Dump directory for failed chunks") do |dir|
Config.dump_dir = dir
end
opts.on("-T", "--test", "Run connection tests") do
@@test_mode = true
end
opts.on("-P", "--parse", "Parse locally before submitting") do
Config.parse_locally = true
end
end
end
|