diff options
-rw-r--r-- | lib/optparse.rb | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -232,6 +232,29 @@ # #<struct User id=2, name="Gandalf"> # bash-3.2$ ruby optparse-test.rb --user 3 # optparse-test.rb:15:in `block in find_user': No User Found for id 3 (RuntimeError) # === Complete example # # The following example is a complete Ruby program. You can run it and see the |