def clioptions(help)
oparser = Optionparser.new({:verbose => false, :progress_bar => true}, "filter", application_options[:exclude_arg_sections])
options = oparser.parse do |parser, options|
if block_given?
yield(parser, options)
end
RPC::Helpers.add_simplerpc_options(parser, options) unless application_options[:exclude_arg_sections].include?("rpc")
end
return oparser.parser.help if help
validate_cli_options
post_option_parser(configuration) if respond_to?(:post_option_parser)
return options
rescue Exception => e
application_failure(e)
end