Hi, >From the doc I read: ... The 'arg' is where 'optarg' is stored upon match. If option has no parameter it's set to non-'NULL' value if option was present. But looks like if a option was present which has no parameter, the 'arg' will set to NULL? Thanks in advance.