Description of problem: Following examples from http://rhq-project.org/display/JOPR2/Running+the+RHQ+CLI are incorrect. 1- chapter RHQ CLI Command Line Options (subchapter Examples) rhq-cli -u rhqadmin -u rhqadmin -c "pretty.print(ResourceTypeManager.findResourceTypesByCriteria(new ResourceTypeCriteria()))" > resource_types.txt there are two options '-u', one of them should be '-p' 2- chapter Script Arguments (Handling Script Arguments example): if (args.length > 2) { <<-- '>' should be '<' throw "Not enough arguments!"; } for (i in args) { println('args[' + i '] = ' + args[i]); <<-- missing '+' } 3- chapter Script Arguments (echo_args.js example) for (i in args) { println('args[' + i '] = ' + args[i]); <<-- missing '+' } 4- chapter Script Arguments (box above echo_args.js example) rhqadmin@localhost:7080$ exec -f echo_args.js --args-style=named x=1, y=2 remove comma between 'x=1' and 'x=2'
setting priority to medium per BZ triage 4/23 (crouch, santos, oleary, foley)
Was that implemented, Deon?
The original wiki page no longer exists, and the CLI guide was rewritten. Closing.