Skip to content

Commit

Permalink
Clarified how you get the selected command.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhon committed Apr 11, 2011
1 parent 5a8d1f9 commit 6342bb5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.rdoc
Expand Up @@ -70,6 +70,8 @@ Assuming a program "prog" with subcommands "del" and "add"

3. call opt_parse()

selected_command_name = opt_parse()

== Sample Output

$ ruby subcommand.rb help
Expand Down

0 comments on commit 6342bb5

Please sign in to comment.