Skip to content

Conversation

@tannerwelsh
Copy link
Contributor

Running codeunion without giving a proper subcommand throws an error. -1 UX.

This is a quick attempt to remedy that:

$ codeunion
Usage: codeunion <command>

The CodeUnion command-line tool is meant to be used in conjunction with CodeUnion's curriculum.

Think of it as your "learning sherpa."

Commands:
    config
    examples
    feedback
    projects
    search

Options:
    -h, --help                       Print this help message

Add -h flag to base `codeunion` command; help message will also display
when no command or flag is given.
@tannerwelsh
Copy link
Contributor Author

Ideal would be to show a summary of each command in the message too, but wondering where that information should live.

Thoughts @zspencer / @jfarmer ?

@zspencer
Copy link
Contributor

For now, it makes sense to just include it here, though at some point we should consider having a standard interface for getting a command's terse help description. Something like codeunion config -h -t or something so we can auto-discover all the commands and get their short descriptions.

@zspencer
Copy link
Contributor

👍 on the code, etc.

@tannerwelsh
Copy link
Contributor Author

Thanks, @zspencer. I agree w/ your first comment so created #36.

tannerwelsh added a commit that referenced this pull request Jan 16, 2015
@tannerwelsh tannerwelsh merged commit ea39656 into master Jan 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants