parallax
1.0
command-line based task/todo manager
Loading...
Searching...
No Matches
argparse.h
Go to the documentation of this file.
1
#ifndef ARGPARSE_H
2
#define ARGPARSE_H
3
10
14
typedef
enum
15
{
16
FLAG_CREATE
,
17
FLAG_MODIFY
,
18
FLAG_REMOVE
,
19
FLAG_LIST
,
20
FLAG_INVALID
21
}
FLAG_TYPE
;
22
23
32
FLAG_TYPE
get_flag
(
char
* flag_string);
33
40
const
char
*
get_content_arg
(
char
* str_arg);
41
42
#endif
//ARGPARSE_H
FLAG_TYPE
FLAG_TYPE
Possible flag types.
Definition
argparse.h:15
FLAG_REMOVE
@ FLAG_REMOVE
Definition
argparse.h:18
FLAG_LIST
@ FLAG_LIST
Definition
argparse.h:19
FLAG_CREATE
@ FLAG_CREATE
Definition
argparse.h:16
FLAG_MODIFY
@ FLAG_MODIFY
Definition
argparse.h:17
FLAG_INVALID
@ FLAG_INVALID
Definition
argparse.h:20
get_flag
FLAG_TYPE get_flag(char *flag_string)
Assigns a string to its corresponding flag type.
Definition
argparse.c:9
get_content_arg
const char * get_content_arg(char *str_arg)
Safely extracts any of the non-flag arguments in the argument vector.
Definition
argparse.c:38
include
argparse.h
Generated by
1.14.0