Skip to content

Task description containing a space after a period. #7

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

Closed
ghost opened this issue Dec 2, 2014 · 2 comments
Closed

Task description containing a space after a period. #7

ghost opened this issue Dec 2, 2014 · 2 comments
Labels

Comments

@ghost
Copy link

ghost commented Dec 2, 2014

In my Rakefile if for a particular task i specify the description as desc "foo.bar" then the description appears correctly when i run rake -T as # foo.bar. But if i enter the description as desc "foo. bar"(space after the period), then only # foo shows up when i run rake -T. Am i missing something here or is this a bug ?

@drbrain
Copy link
Member

drbrain commented Dec 3, 2014

This is a feature of rake:

$ cat test.rf
desc "This is a task.  It has a long description."
task :task
$ rake -f test.rf -T
rake publish            # Publish the Documentation to RubyForge
rake task               # This is a task
rake test:times[limit]  # Find the slowest unit tests
$ rake -f test.rf -D
rake publish
    Publish the Documentation to RubyForge.

rake task
    This is a task.  It has a long description.

rake test:times[limit]
    Find the slowest unit tests

@drbrain drbrain closed this as completed in fa980b6 Dec 3, 2014
@drbrain drbrain added the bug label Dec 3, 2014
@ghost
Copy link
Author

ghost commented Dec 3, 2014

Thanks a lot @drbrain :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant