Allow --help for rbt commands.

Review Request #4228 — Created June 10, 2013 and submitted

Information

RBTools
master

Reviewers

Allow --help for rbt commands.

In order to print help for a command, the user would need to call
"rbt help <command-name>". We now also allow the "--help" option
both before or after the command name.

For example, both "rbt --help <command-name>" and
"rbt <command-name> --help" will now print help for the command.
Ran rbt commands with '--help' in various positions.
rbt --help
rbt --help status
rbt status --help
etc.
reviewbot
  1. This is a review from Review Bot.
      Tool: PEP8 Style Checker
      Processed Files:
        rbtools/commands/main.py
      Ignored Files:
    
    
  2. 
      
SM
reviewbot
  1. This is a review from Review Bot.
      Tool: PEP8 Style Checker
      Processed Files:
        rbtools/commands/main.py
      Ignored Files:
    
    
  2. 
      
SU
  1. 
      
  2. rbtools/commands/main.py (Diff revision 2)
     
     
    Do you think "usage" needs some corrections now we have options for rbt ?
  3. 
      
david
  1. Ship It!
  2. 
      
SM
Review request changed
Status:
Completed
Change Summary:
Pushed to master and release-0.5.x (dd73046742a6614d2ecf63bac1935e8497ca2fe4)