I want to embed both usage message and build properties message in my binary. How do I do that?
It would be good if some one can paste some sample source code snippets.
I do not want to use the sample.use file. Instead i want it to be baked inside my source code.
Ex:- I want to print the below for my test application binary.
use myTestApp
myTestApp - sample test application
Options:
-c: configuration file path
-v: verbosity level
-l: log to stdout
use -i myTestApp
NAME=myTestApp
DESCRIPTION=sample test app
DATE=2009/10/28
STATE=expt
USER=tester1
VERSION=0.1.1