Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 913581

Summary: Passing nonsense arguments to domain.[sh|bat] won't show usage help
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Petr Kremensky <pkremens>
Component: Scripts and CommandsAssignee: Emanuel Muckenhuber <emuckenh>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.1.0CC: brian.stansberry, dandread, emuckenh, rsvoboda
Target Milestone: ER3   
Target Release: EAP 6.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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 Petr Kremensky 2013-02-21 14:10:55 UTC
Calling [standalone|domain].[sh|bat] with nonsense arguments showed usage message (same like --help) on EAP6.0. This parts is now presented only for standalone.[sh|bat], but it is missing for domain.

jboss-eap-6.1/bin]$ ./domain.sh foo
...
14:28:24,452 INFO  [org.jboss.modules] (main) JBoss Modules version 1.2.0.CR1
14:28:24,519 INFO  [org.jboss.as.process.Host Controller.status] (main) JBAS012017: Starting process 'Host Controller'
[Host Controller] 14:28:24,822 INFO  [org.jboss.modules] (main) JBoss Modules version 1.2.0.CR1
[Host Controller] 14:28:24,878 ERROR [stderr] (main) JBAS010961: Invalid option 'foo'. Use domain.sh --help for information on valid command line arguments and their syntax.
14:28:24,886 INFO  [org.jboss.as.process.Host Controller.status] (reaper for Host Controller) JBAS012010: Process 'Host Controller' finished with an exit status of 99
14:28:24,891 INFO  [org.jboss.as.process] (Thread-6) JBAS012016: Shutting down process controller
14:28:24,892 INFO  [org.jboss.as.process] (Thread-6) JBAS012015: All processes finished; exiting

Comment 1 Petr Kremensky 2013-02-21 14:45:57 UTC
Also the line:
Invalid option '--foo'Usage: ./standalone.sh [args...]
is missing while calling eg. standalone.[sh|bat] --foo

Comment 2 Permaine Cheung 2013-02-21 15:35:45 UTC
Brian, can you please look into this? Thanks!

Comment 3 JBoss JIRA Server 2013-03-06 12:09:28 UTC
Emanuel Muckenhuber <emuckenh> updated the status of jira AS7-6678 to Resolved

Comment 4 Petr Kremensky 2013-03-21 08:57:08 UTC
Verified on EAP 6.1.0 ER3