# Rdoc/usage usage\_no\_exit error

**URL:** <https://www.ruby-forum.com/t/rdoc-usage-usage-no-exit-error/52015>\
**Category:** Ruby\
**Created:** [January 10, 2006, 3:28am UTC](https://www.ruby-forum.com/t/rdoc-usage-usage-no-exit-error/52015 "2006-01-10T03:28:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sporkyy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c89c15/32.png) [@sporkyy](https://www.ruby-forum.com/u/sporkyy)\
**Post date:** [January 10, 2006, 3:28am UTC](https://www.ruby-forum.com/t/rdoc-usage-usage-no-exit-error/52015/1 "2006-01-10T03:28:16Z")

</div>

I’m trying to integrate rdoc/usage.rb into my ruby script for the usage  
paramaters, however it doesn’t seem to work.

when I call RDoc::usage I get this…

/usr/local/lib/ruby/1.8/rdoc/usage.rb:105:in `usage_no_exit': private method`gsub’ called for nil:NilClass (NoMethodError)

Is there any way to fix this?

---

<div class="post-metadata">

**Author:** ![sporkyy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c89c15/32.png) [@sporkyy](https://www.ruby-forum.com/u/sporkyy)\
**Post date:** [January 11, 2006, 6:35pm UTC](https://www.ruby-forum.com/t/rdoc-usage-usage-no-exit-error/52015/2 "2006-01-11T18:35:44Z")

</div>

Todd S. wrote:

> 

Check for the REALLY dumb errors. From a look at the usage.rb source, it  
seems that find\_usage fails to find your usage information at all. Check  
for typos, or how you comment out the documentation comments -  
#find\_comment in usage.rb doesn’t seem to recognize =begin […] =end  
blocks.
