RocHack / bb

Command line Blackboard client
MIT License
72 stars 8 forks source link

Add 'bb help <command>' #26

Closed AstralSorcerer closed 9 years ago

AstralSorcerer commented 9 years ago

This adds the ability to get the usage for a command through the help command instead of just bb command -h.

joeljk13 commented 9 years ago

Check your spacing again - I'm detecting spaces where there should be tabs.

AstralSorcerer commented 9 years ago

Sorry. Fixed it.

joeljk13 commented 9 years ago

There's a bunch of commented out code lines - is there a reason for those? At a glance it looks like they should just be removed.

AstralSorcerer commented 9 years ago

Two of them are cases for commands that don't currently have help functions. I left them in in case help for those commands was added later. The other comments out a return statement that is innefective after the exit 1 in the usage_balance function, which is there to match the other usage_ functions. I didn't know if there was anything special with that particular return statement, so I left it as a comment. I can remove them if you think that it would be cleaner.

clehner commented 9 years ago

Rebased onto master, merged in 4a89768d4b41de55927ac2161e5daa553257fe85