master/csspp-all_1.0.16.0~xenial/csspp/advgetopt/src/advgetopt.cpp
/** \brief Check whether this parameter is an argument.
 *
 * An argument is defined as a command line parameter that starts with
 * a dash and is not just "-".
 *
 * Note that "--" is viewed as an argument (this function returns true)
 * and the getopt class takes it as a command meaning any other parameter
 * is not an argument.
 */
\brief Check whether this parameter is an argument.
An argument is defined as a command line parameter that starts with
a dash and is not just "-".

Note that "--" is viewed as an argument (this function returns true)
and the getopt class takes it as a command meaning any other parameter
is not an argument.
\ brief Check whether this parameter is an argument . An argument is defined as a command line parameter that starts with a dash and is not just " - " . Note that " -- " is viewed as an argument ( this function returns true ) and the getopt class takes it as a command meaning any other parameter is not an argument .
bool is_arg(char const * a)
{
    return a[0] == '-' && a[1] != '\0';
}
bool is_arg ( char const * a ) { return a [ 0 ] == ' ' && a [ 1 ] != ' \0 ' ; }
\brief Check whether this parameter is an argument.
\ brief Check whether this parameter is an argument .
// "-" and "--" are not options; however "--" returns true // because after a "--" we take the data as default arguments