Issue Details (XML | Word | Printable)

Key: GLASSFISH-12906
Type: Improvement Improvement
Status: Open Open
Priority: Minor Minor
Assignee: Bill Shannon
Reporter: Homer Yau
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
glassfish

Need to provide all cli command with --usage as an option

Created: 05/Aug/10 05:04 PM   Updated: 25/Jan/11 11:51 AM
Component/s: command_line_interface
Affects Version/s: 3.1
Fix Version/s: None

Time Tracking:
Not Specified

Environment:

Operating System: All
Platform: All


Issuezilla Id: 12,906
Tags:
Participants: Bill Shannon, Homer Yau and Tom Mueller


 Description  « Hide

Need to provide all cli command with "--usage" as an option.

User either have to type the cli command with wrong option in order to get the
available usage option.
Or User have to either type -? or --help to get help version of the available
option.

./asadmin export-http-lb-config -?
./asadmin export-http-lb-config --help

We asadmin command have --usage as an option, it will provide a much better
GlassFish user experience.

Since user may only need hints of those available options.

Instead of saying --usage is a "Invalid option".

asadmin> export-http-lb-config --usage
Invalid option: --usage
Usage: asadmin [asadmin-utility-options] export-http-lb-config
[--targets <targets>] [--config <config>] [--lbname <lbname>]
[--property <property>] [?|-help[=<help(default:false)>]] file_name
Command export-http-lb-config failed.

asadmin> export-http-lb-config -?

NAME :
export-http-lb-config -

SYNOPSIS :
export-http-lb-config [--targets=targets] [--config=config]
[--lbname=lbname] [--property=property] file_name

OPTIONS :
--lbname

--targets

--config

--property

OPERANDS :
file_name -

Command export-http-lb-config executed successfully.

asadmin> export-http-lb-config --help

NAME :
export-http-lb-config -

SYNOPSIS :
export-http-lb-config [--targets=targets] [--config=config]
[--lbname=lbname] [--property=property] file_name

OPTIONS :
--lbname

--targets

--config

--property

OPERANDS :
file_name -

Command export-http-lb-config executed successfully.