git/t/helper/test-parse-options.c

#include "test-tool.h"
#include "parse-options.h"
#include "strbuf.h"
#include "string-list.h"
#include "trace2.h"

static int boolean =;
static int integer =;
static unsigned long magnitude =;
static timestamp_t timestamp;
static int abbrev =;
static int verbose =; /* unspecified */
static int dry_run =, quiet =;
static char *string =;
static char *file =;
static int ambiguous;

static struct {} length_cb;

static int mode34_callback(const struct option *opt, const char *arg, int unset)
{}

static int length_callback(const struct option *opt, const char *arg, int unset)
{}

static int number_callback(const struct option *opt, const char *arg, int unset)
{}

static int collect_expect(const struct option *opt, const char *arg, int unset)
{}

__attribute__((format (printf,3,4)))
static void show(struct string_list *expect, int *status, const char *fmt, ...)
{}

int cmd__parse_options(int argc, const char **argv)
{}

static void print_args(int argc, const char **argv)
{}

static int parse_options_flags__cmd(int argc, const char **argv,
				    enum parse_opt_flags test_flags)
{}

static enum parse_opt_flags test_flags =;
static const struct option test_flag_options[] =;

int cmd__parse_options_flags(int argc, const char **argv)
{}

static int subcmd_one(int argc, const char **argv, const char *prefix UNUSED)
{}

static int subcmd_two(int argc, const char **argv, const char *prefix UNUSED)
{}

static int parse_subcommand__cmd(int argc, const char **argv,
				 enum parse_opt_flags test_flags)
{}

int cmd__parse_subcommand(int argc, const char **argv)
{}