OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
argpar.c File Reference
#include <argpar.h>
#include <check.h>
#include <errno.h>
#include <ftw.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <unistd.h>
Include dependency graph for argpar.c:

Go to the source code of this file.

Classes

struct  arguments
 
struct  arguments_parent
 

Functions

 START_TEST (no_args_usage)
 
END_TEST START_TEST (no_real_args)
 
END_TEST START_TEST (auto_help)
 
END_TEST START_TEST (unknown_option)
 
END_TEST START_TEST (no_key_args)
 
END_TEST START_TEST (aliases)
 
END_TEST START_TEST (int_errors)
 
END_TEST START_TEST (dbl_errors)
 
END_TEST START_TEST (parfile1)
 
 START_TEST (children1)
 
END_TEST START_TEST (parse_parfile)
 
END_TEST START_TEST (parse_parfile_in_child)
 
END_TEST START_TEST (skip_parfiles)
 
END_TEST START_TEST (no_keyargs)
 
END_TEST START_TEST (no_keyargs_parfile)
 
END_TEST START_TEST (split_strings)
 
END_TEST START_TEST (split_strings_trim)
 
END_TEST START_TEST (split_int)
 
END_TEST START_TEST (split_dbl)
 
END_TEST START_TEST (accept_any)
 
END_TEST Suite * stub_suite (void)
 
int main (int argc, char **argv)
 

Variables

FILE * argpar_ostream
 
const char * argpar_program_name = "argpar-test"
 
char stdout_file [64]
 
argpar params = { options, parse_options, args_doc, doc }
 
argpar_child children [] = {{&params}, {0}}
 
argpar params_parent = { options_parent, parse_options_parent, args_doc_parent, doc_parent, children }
 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 823 of file argpar.c.

◆ START_TEST() [1/20]

END_TEST START_TEST ( accept_any  )

Definition at line 767 of file argpar.c.

◆ START_TEST() [2/20]

END_TEST START_TEST ( aliases  )

Definition at line 259 of file argpar.c.

◆ START_TEST() [3/20]

END_TEST START_TEST ( auto_help  )

Definition at line 171 of file argpar.c.

◆ START_TEST() [4/20]

START_TEST ( children1  )

Definition at line 427 of file argpar.c.

◆ START_TEST() [5/20]

END_TEST START_TEST ( dbl_errors  )

Definition at line 318 of file argpar.c.

◆ START_TEST() [6/20]

END_TEST START_TEST ( int_errors  )

Definition at line 290 of file argpar.c.

◆ START_TEST() [7/20]

START_TEST ( no_args_usage  )

Definition at line 139 of file argpar.c.

◆ START_TEST() [8/20]

END_TEST START_TEST ( no_key_args  )

Definition at line 222 of file argpar.c.

◆ START_TEST() [9/20]

END_TEST START_TEST ( no_keyargs  )

Definition at line 558 of file argpar.c.

◆ START_TEST() [10/20]

END_TEST START_TEST ( no_keyargs_parfile  )

Definition at line 586 of file argpar.c.

◆ START_TEST() [11/20]

END_TEST START_TEST ( no_real_args  )

Definition at line 150 of file argpar.c.

◆ START_TEST() [12/20]

END_TEST START_TEST ( parfile1  )

Definition at line 347 of file argpar.c.

◆ START_TEST() [13/20]

END_TEST START_TEST ( parse_parfile  )

Definition at line 460 of file argpar.c.

◆ START_TEST() [14/20]

END_TEST START_TEST ( parse_parfile_in_child  )

Definition at line 498 of file argpar.c.

◆ START_TEST() [15/20]

END_TEST START_TEST ( skip_parfiles  )

Definition at line 531 of file argpar.c.

◆ START_TEST() [16/20]

END_TEST START_TEST ( split_dbl  )

Definition at line 732 of file argpar.c.

◆ START_TEST() [17/20]

END_TEST START_TEST ( split_int  )

Definition at line 697 of file argpar.c.

◆ START_TEST() [18/20]

END_TEST START_TEST ( split_strings  )

Definition at line 613 of file argpar.c.

◆ START_TEST() [19/20]

END_TEST START_TEST ( split_strings_trim  )

Definition at line 672 of file argpar.c.

◆ START_TEST() [20/20]

END_TEST START_TEST ( unknown_option  )

Definition at line 195 of file argpar.c.

◆ stub_suite()

END_TEST Suite* stub_suite ( void  )

Definition at line 794 of file argpar.c.

Variable Documentation

◆ argpar_ostream

FILE* argpar_ostream

Definition at line 15 of file argpar.c.

◆ argpar_program_name

const char* argpar_program_name = "argpar-test"

Definition at line 16 of file argpar.c.

◆ children

argpar_child children[] = {{&params}, {0}}

Definition at line 424 of file argpar.c.

◆ params

argpar params = { options, parse_options, args_doc, doc }

Definition at line 137 of file argpar.c.

◆ params_parent

argpar params_parent = { options_parent, parse_options_parent, args_doc_parent, doc_parent, children }

Definition at line 425 of file argpar.c.

◆ stdout_file

char stdout_file[64]

Definition at line 39 of file argpar.c.