Talk:Parse command-line arguments

Revision as of 19:13, 6 August 2011 by rosettacode>Mcandre (Created page with "Getopt documentation is often too sparse to be useful--one reason I started this article. The phone call example is just a quick example. I think we should define a more useful ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Getopt documentation is often too sparse to be useful--one reason I started this article.

The phone call example is just a quick example. I think we should define a more useful CLI example for each language.

pmath: Perform mathematical operations.

Examples:

Usage

./pmath.rb -h

Fibonacci

./pmath.rb --fib 100

e^power

./pmath.rb -e 2

--User:Mcandre

Return to "Parse command-line arguments" page.