Bug 982945 - Handling Script Arguments Section of documentation uses wrong if condition
Summary: Handling Script Arguments Section of documentation uses wrong if condition
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Operations Network
Classification: JBoss
Component: Documentation
Version: JON 3.1.2
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: Deon Ballard
QA Contact: Mike Foley
URL: https://c.na7.visual.force.com/apex/C...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-10 08:13 UTC by Jay SenSharma
Modified: 2018-12-02 16:20 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-05-10 03:42:26 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jay SenSharma 2013-07-10 08:13:16 UTC
Document URL: 
https://access.redhat.com/site/documentation//en-US/JBoss_Operations_Network/3.1/html/Dev_Writing_JON_Command-Line_Scripts/common-actions.html#Working_with_the_CLI-Script_Arguments


Section Number and Name: 
5.3. Passing Command and Script Arguments
Example 11. Handling Script Arguments



Describe the issue: 
The "Handling Script Arguments" Section shows a wrong if snippet (as the Greater than symbot should be changed to Less than symbol)

INCORRECT SECTION
=================
if (args.length > 2) {
    throw "Not enough arguments!";
}




Suggestions for improvement: 
SHOULD BE CORRECTED TO
======================
if (args.length < 2) {
    throw "Not enough arguments!";
}



Additional information:

Comment 1 Deon Ballard 2014-05-10 03:42:26 UTC
Mass closure of bugs modified in 2013. All of these are in the currently-published docs.


Note You need to log in before you can comment on or make changes to this bug.