Skip to content

make help more accessible #429

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

Merged
merged 1 commit into from
Sep 9, 2015
Merged

make help more accessible #429

merged 1 commit into from
Sep 9, 2015

Conversation

grosser
Copy link
Collaborator

@grosser grosser commented Sep 5, 2015

@jonleighton @rafaelfranca

I found myself using spring -h twice already ... would be nice if it was consistent with other commands and did not try to start a server (and keep it running in the background) when I use -h / --help because I might be a new user and not even know that springs wants spring help

@rails-bot
Copy link

r? @rafaelfranca

(@rails-bot has picked a reviewer for you, use r? to override)

@rafaelfranca
Copy link
Member

Yeah agree 👍

@grosser
Copy link
Collaborator Author

grosser commented Sep 9, 2015

tests added, looking good ?


test "shows help" do
assert_success "bin/spring help", stdout: 'Usage: spring COMMAND [ARGS]'
assert_success "bin/spring --help", stdout: 'Usage: spring COMMAND [ARGS]'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing a test of -h?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added!

On Wed, Sep 9, 2015 at 10:09 AM, Rafael Mendonça França <
notifications@github.com> wrote:

In lib/spring/test/acceptance_test.rb
#429 (comment):

@@ -84,6 +84,13 @@ def without_gem(name)

   test "help message when called without arguments" do
     assert_success "bin/spring", stdout: 'Usage: spring COMMAND [ARGS]'
  •    assert app.spring_env.server_running?
    
  •  end
    
  •  test "shows help" do
    
  •    assert_success "bin/spring help", stdout: 'Usage: spring COMMAND [ARGS]'
    
  •    assert_success "bin/spring --help", stdout: 'Usage: spring COMMAND [ARGS]'
    

Missing a test of -h?


Reply to this email directly or view it on GitHub
https://github.com/rails/spring/pull/429/files#r39069611.

@rafaelfranca
Copy link
Member

:shipit:

grosser added a commit that referenced this pull request Sep 9, 2015
@grosser grosser merged commit 3ea8333 into master Sep 9, 2015
@grosser grosser deleted the grosser/help branch September 9, 2015 17:32
@grosser
Copy link
Collaborator Author

grosser commented Sep 9, 2015

can you release a 1.4.0 ?

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