Create help command

Bug #837875 reported by Adam Connelly
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
DB Version
Status tracked in Trunk
Trunk
Fix Committed
Medium
Adam Connelly

Bug Description

Create a help command that provides information about using the application. The command would have the following usage:

dbversion help [command]

If no command is specified the usage for the application should be printed along with the available commands. If a command is specified then information about that command should be printed.

Related branches

Revision history for this message
Adam Connelly (adam-rpconnelly) wrote :

I've added the help command to dbversion. If the command is specified with no parameters, the output looks like:

./dbversion.exe help
  create Creates or upgrades a database using the specified archive.
  help Displays information about using the application and then exits.
  version Displays version information and then exits.

  Use dbversion help [command] for more help on a command.

If a command name is specified after help, the options for the command are shown like:

./dbversion.exe help create
Usage: dbversion create [options]

Options:
  -a, --archive The archive to create the database from.
  -c, --connectionString The database connection string.
  -v, --version The version to create or upgrade to.
  -p, --connectionProvider The hibernate connection provider.
  -d, --driverClass The hibernate driver class.
  -l, --dialect The hibernate dialect.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.