Entries from April 2010 ↓

Command Line Options Parsing in Ruby

One of the most common ways how to control a command line application is to use options, e.g. almost every command line application would understand -h or --help or /? (common in the MS-DOS world) as a request to show some instruction. Ruby (but also other programming languages such as Java) has a basic support for [...]