lib/eco/cli/config/default/options.rb in eco-helpers-2.0.26 vs lib/eco/cli/config/default/options.rb in eco-helpers-2.0.27
- old
+ new
@@ -1,9 +1,14 @@
ASSETS.cli.config do |cnf|
cnf.options_set do |options_set, options|
options_set.add("--help", "Offers a HELP") do |options, sesssion|
conf = ASSETS.cli.config
- active = Proc.new {|opt| SCR.get_arg(opt) && SCR.get_arg(opt, with_param: true)}
+ active = Proc.new do |opt|
+ if there = SCR.get_arg(opt)
+ refine = SCR.get_arg(opt, with_param: true)
+ end
+ refine || there
+ end
if hpf = active.call("-filters")
puts conf.people_filters.help(refine: hpf)
end
if hif = active.call("-input-filters")