#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "commander.h"
Go to the source code of this file.
|
static void | error (char *msg) |
|
static void | command_version (command_t *self) |
|
void | command_help (command_t *self) |
|
void | command_init (command_t *self, const char *name, const char *version) |
|
void | command_free (command_t *self) |
|
static void | parse_argname (const char *str, char *flag, char *arg) |
|
static char ** | normalize_args (int *argc, char **argv) |
|
void | command_option (command_t *self, const char *small, const char *large, const char *desc, command_callback_t cb) |
|
static void | command_parse_args (command_t *self, int argc, char **argv) |
|
void | command_parse (command_t *self, int argc, char **argv) |
|
static void error |
( |
char * |
msg | ) |
|
|
static |
static void command_version |
( |
command_t * |
self | ) |
|
|
static |
void command_init |
( |
command_t * |
self, |
|
|
const char * |
name, |
|
|
const char * |
version |
|
) |
| |
static void parse_argname |
( |
const char * |
str, |
|
|
char * |
flag, |
|
|
char * |
arg |
|
) |
| |
|
static |
static char** normalize_args |
( |
int * |
argc, |
|
|
char ** |
argv |
|
) |
| |
|
static |
static void command_parse_args |
( |
command_t * |
self, |
|
|
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
|
static |
void command_parse |
( |
command_t * |
self, |
|
|
int |
argc, |
|
|
char ** |
argv |
|
) |
| |