getopt example please

Andrew Edwards ridimz at yahoo.com
Wed Feb 26 01:57:19 PST 2014


Request a small example of how to use getopt to accomplish the following:

[1] program subcommand //process subcommand with default arguments if any
[2] program -h subcommand //output help information about subcommand
[3] program subcommand --option1 --option2 true option3=log.txt // 
process subcommand with user specified options

Thanks,
Andrew


More information about the Digitalmars-d-learn mailing list