argparse

Reference Documentation

product_line_custom
IntelĀ® PAC
Napatech SmartNIC
category
Reference Information
Napatech Software Suite: argparse Struct Reference
argparse Struct Reference

#include <argparse.h>

Data Fields

const struct argparse_optionoptions
 
const char *const * usage
 
int flags
 
int argc
 
const char ** argv
 
const char ** out
 
int cpidx
 
const char * optvalue
 

Detailed Description

Field Documentation

const struct argparse_option* argparse::options

Definition at line 95 of file argparse.h.

Referenced by argparse_init(), argparse_parse(), and argparse_usage().

const char* const* argparse::usage

Definition at line 96 of file argparse.h.

Referenced by argparse_init(), and argparse_usage().

int argparse::flags

Definition at line 97 of file argparse.h.

Referenced by argparse_init(), and argparse_parse().

int argparse::argc
Examples:
bypass/watchdog/bypass_watchdog_example.c, net/readcapfile/readcapfile_example.c, and net/replayGS/replayGS_example.c.

Definition at line 99 of file argparse.h.

Referenced by argparse_getvalue(), and argparse_parse().

const char** argparse::argv

Definition at line 100 of file argparse.h.

Referenced by argparse_error(), argparse_getvalue(), argparse_long_opt(), and argparse_parse().

const char** argparse::out

Definition at line 101 of file argparse.h.

Referenced by argparse_parse().

int argparse::cpidx

Definition at line 102 of file argparse.h.

Referenced by argparse_parse().

const char* argparse::optvalue

Definition at line 103 of file argparse.h.

Referenced by argparse_getvalue(), argparse_long_opt(), argparse_parse(), and argparse_short_opt().


The documentation for this struct was generated from the following file:
  • examples/common/argparse.h