Skip to content
davetron5000 edited this page Aug 12, 2012 · 1 revision

There is one mandatory change and one optional, but recommended change

Mandatory

Use

exit run(ARGV)

to start your app instead of

# BAD - doesn't work with GLI2
exit GLI.run(ARGV)

The scaffold generates the correct code, but for your existing apps make this change. Your app will error out with an explanation to this effect if you do not do this

Optional, but recommended

Previously, you did an include GLI to bring in the DSL. Now, you must

include GLI::App  

You'll get a warning if you don't do this, but things should still work.

rdoc command re-named

The rdoc command has been renamed to be _doc (note the underscore) and takes a flag to indicate the format of the doc, which defaults to rdoc:

bundle exec bin/your_app _doc
# OR
bundle exec bin/your_app _doc --format=rdoc

See RDoc for more info on how this works.

Otherwise

Everything else should generally work fine. All the examples from the book work with the above changes made.

Clone this wiki locally