Bug 847272

Summary: CLI doc - Incorrect examples for executing a script with argumets
Product: [JBoss] JBoss Operations Network Reporter: Filip Brychta <fbrychta>
Component: DocumentationAssignee: Deon Ballard <dlackey>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: JON 3.1.1   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-03-01 00:33:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Filip Brychta 2012-08-10 11:28:33 UTC
Description of problem:
Example 11 and Example 16 from http://docs.redhat.com/docs/en-US/JBoss_Operations_Network/3.1/html/Dev_Writing_JON_Command-Line_Scripts/common-actions.html are incorrect.


Example 11:
following line:
rhqadmin@localhost:7080$ exec -f echo_args.js --args-style=named x=1, y=2

correct version:
rhqadmin@localhost:7080$ exec -f echo_args.js --args-style=named x=1 y=2
(no comma between arguments)



Example16:
localhost:7080(rhqadmin)> exec --style=named -f /absolute/path/to/myscript.js -s named x=1 y=2 y=3

correct version:
localhost:7080(rhqadmin)> exec --args-style=named -f /absolute/path/to/myscript.js x=1 y=2 y=3

-s is not a valid option for exec command (maybe it was removed?? - not sure) so following sentence 'This can be done using the -s option, which, much like the --args-style option with the rhq-cli.sh command' is not true any more.



Tested on JON311ER1

Comment 1 Deon Ballard 2013-03-01 00:33:20 UTC
Mass closure.