Creating Command-Line Utilities with cmdparse

Apress eBooks · 2007

T he cmdparse gem provides support for writing command toolkits. Specifically, you can create command-based command-line programs—programs that take a number of commands, with each command able to have a varying number of arguments. This style of program is what the gem command uses, and it is a bit more flexible than parsing based on switches, which is what many other Linux, OS X, and Windows commands use. In any event, cmdparse lets you create such programs quickly and efficiently—letting you worry about your program and not about how it receives input from the user. cmdparse also gives you free functionality, such as a help command which will go through all of your available commands and display them, their descriptions, and their options to the user. These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Read the paper · More papers on PaperTik