Function gnunet_sys::GNUNET_GETOPT_option_flag[][src]

pub unsafe extern "C" fn GNUNET_GETOPT_option_flag(
    shortName: c_char,
    name: *const c_char,
    description: *const c_char,
    val: *mut c_int
) -> GNUNET_GETOPT_CommandLineOption

Allow user to specify a flag (which internally means setting an integer to 1/#GNUNET_YES/#GNUNET_OK.

@param shortName short name of the option @param name long name of the option @param description long help text for the option @param[out] val set to 1 if the option is present