Short: Example/library for command line parsing Author: "David 'tinman' McMinn" This archive contaings some example C source code for performing command line argument or parameter parsing in an intelligent and extensible way. It is based on AmigaOS/dos.library/ReadArgs() and operates in pretty much the same way. The benefits of this system are: - Program specifies a template in a standard format (making it easier for the user to understand) - Program can be queried at runtime about what template it offers - Names and aliases can be given to parameters to aid understanding - Parameters can be entered on the command line in any order - Multiple formats of parameter are recognised - Functions can parse any string, not just the command line Of course, there are drawbacks due to my laziness - Only supports ASCII strings - Win32 commands used to grab the command line However, I think it's quite funky. It's explained in the readargs sources the demo program doesn't help before you read that. You can try "testproject ?" though :) This is released into the public domain without warranty of any kind - use it at your own risk. I would appreciate some credit if you use it without a lot of modifications. There are also some additional source files as used with the demo, namely console utility functions and debugging functions. Same license. -- [) /\ \/ ][ [) |\/| c |\/| ][ |\| |\| | ICQ=16827694 http://www.david-mcminn.co.uk | dave@blitz-2000.co.uk