Mentions légales du service

Skip to content
Snippets Groups Projects

Simplification de la CLI

Merged Alexandre MERLIN requested to merge cli into master
All threads resolved!
Files
10
+ 7
0
@@ -69,12 +69,19 @@ class KaconsoleClient < Client
def self.parse_options()
global_parse_options() do |opt, options|
opt.banner = "Usage: #{$0.split('/')[-1]} [options] NODE\nAccess the console of the NODE."
opt.separator "General options:"
parse_machine(opt, options)
end
end
def self.check_options(options)
if options[:nodes].empty? && !ARGV.empty?
options[:machine] = true
while !ARGV.empty?
load_machine(options[:nodes], ARGV.shift.dup)
end
end
if !options[:nodes] or options[:nodes].empty?
error("You must choose one node")
return false
Loading