[scaffold] Fix handling of POPT default values
[scaffold] Fix handling of POPT default values

The val element of the poptOption struct is not meant to hold a default
value, but a *return* value for poptGetNextOpt upon encountering the
option; 0 indicate not to return.

oml2-scaffold sets this value to the short-hand character for the
option, or 0 if not specified.

Signed-off-by: Olivier Mehani <9858fe98d2c7f5f35e0d2a08f134cfc58afd42d3@nicta.com.au>

lees0414/EUproject,alco90/soml,lees0414/EUproject,mytestbed/oml,mytestbed/oml,mytestbed/oml,alco90/soml,alco90/soml,mytestbed/oml,alco90/soml,lees0414/EUproject,mytestbed/oml,alco90/soml,lees0414/EUproject,lees0414/EUproject