Talk:Parse command-line arguments: Difference between revisions

Content added Content deleted
m (I have some (currently incomplete) documentation)
m (format)
Line 8: Line 8:
The phone call example is just a quick example. I think we should define a more useful CLI example for each language.
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.
pmath: Perform mathematical operations.
Examples:

Usage
Examples:
./pmath.rb -h

Fibonacci
Usage
./pmath.rb --fib 100

e raised to a power
./pmath.rb -h
./pmath.rb -e 2

Fibonacci

./pmath.rb --fib 100

e raised to a power

./pmath.rb -e 2


--[[User:Mcandre]]
--[[User:Mcandre]]