Parse command args.
Parse command args. This function takes the arguments passed to a program and sorts them according to a user-supplied xiopts structure.The different types of options supported are LOT_FLAG, LOT_KEYWORD, LOT_VALUE and LOT_FLOAT. The OptNode structures in the xiargs returned will have this type set, and the appropriate data field will contain the argument to the option.
An option that wasn't specified by the user will not be present in the list. Non-option arguments are in the leftovers List.
See the testopts.c sourcecode for example usage. Note that you won't need to supply your own usage display function.