Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verbose flag for 'help' command #11

Merged
merged 2 commits into from
Feb 20, 2017
Merged

Verbose flag for 'help' command #11

merged 2 commits into from
Feb 20, 2017

Conversation

KyleBanks
Copy link

This resolves Issue #10.

To see how it looks, here's a modified copy of the existing Makefile:

# Run all tests.
test:
	@go test -cover ./...
.PHONY: test

# Install the program.
#
# For more details, this is a longer explanation of 
# what install does. I might even list some dependencies
# or trivia about the command.
install:
	@go install ./...
.PHONY: install

# Build release.
build:
	@gox -os="linux darwin windows openbsd" ./...
.PHONY: build

And the output it generates:

$ mmake help -v

  build:
    Build release.

  install:
    Install the program.
    
    For more details, this is a longer explanation of 
    what install does. I might even list some dependencies
    or trivia about the command.

  test:
    Run all tests.

And for comparison, the existing help commands:

$ mmake help

  build     Build release.
  install   Install the program.
  test      Run all tests.

$ mmake help install

  Install the program.
  
  For more details, this is a longer explanation of 
  what install does. I might even list some dependencies
  or trivia about the command.

@tj
Copy link
Owner

tj commented Feb 20, 2017

awesome! Thanks

@tj tj merged commit 1528a4a into tj:master Feb 20, 2017
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.

2 participants