rb --help now displays all available commands.

Review Request #3690 — Created Dec. 20, 2012 and discarded

Information

RBTools
api

Reviewers

rb --help now displays all available commands.

And the error message on invalid commands is somewhat easier to
understand.

Note that I just thought that this feature was useful, but I am definitely OK if you don't want to implement it, or if you want to implement it your way down the road. Just discard the request, no problem.
Tested manually with valid and invalid command names.
Description From Last Updated

I think it's fine to just call pkg_resources.get_entry_map directly where it's needed. I don't see any other cases where this …

chipx86chipx86

No space before :

chipx86chipx86

You can just do: if command_name not in commands: It prevents having to build a list of keys.

chipx86chipx86

No space before :

chipx86chipx86
chipx86
  1. 
      
  2. rbtools/commands/rb.py (Diff revision 1)
     
     
     
     
    Show all issues
    I think it's fine to just call pkg_resources.get_entry_map directly where it's needed. I don't see any other cases where this function is used.
  3. rbtools/commands/rb.py (Diff revision 1)
     
     
    Show all issues
    No space before :
  4. rbtools/commands/rb.py (Diff revision 1)
     
     
    Show all issues
    You can just do:
    
    if command_name not in commands:
    
    It prevents having to build a list of keys.
  5. rbtools/commands/rb.py (Diff revision 1)
     
     
    Show all issues
    No space before :
  6. 
      
SM
  1. I have a review request up now which is doing something similar, but we will be moving away from this down the line.
  2. 
      
CU
  1. If it's simpler for you, I could just discard this request.
    Or I can fix it, no problem.
    I'll let you guys choose and tell me.
  2. 
      
CU
Review request changed
Status:
Discarded