Sha256: a9234a8277001d8a0252b3e9b73c581bbfe64fb209eef565dd082beba81b3053

Contents?: true

Size: 971 Bytes

Versions: 8

Compression:

Stored size: 971 Bytes

Contents

/*
 * Copyright (C) the libgit2 contributors. All rights reserved.
 *
 * This file is part of libgit2, distributed under the GNU GPL v2 with
 * a Linking Exception. For full terms see the included COPYING file.
 */

#ifndef CLI_opt_usage_h__
#define CLI_opt_usage_h__

/**
 * Prints usage information to the given file handle.
 *
 * @param file The file to print information to
 * @param command The name of the command to use when printing
 * @param subcommand The name of the subcommand (eg "checkout") to use when printing, or NULL to skip
 * @param specs The specifications allowed by the command
 * @return 0 on success, -1 on failure
 */
int cli_opt_usage_fprint(
	FILE *file,
	const char *command,
	const char *subcommand,
	const cli_opt_spec specs[]);

int cli_opt_usage_error(
	const char *subcommand,
	const cli_opt_spec specs[],
	const cli_opt *invalid_opt);

int cli_opt_help_fprint(
	FILE *file,
	const cli_opt_spec specs[]);

#endif /* CLI_opt_usage_h__ */

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rugged-1.7.2 vendor/libgit2/src/cli/opt_usage.h
rugged-1.6.5 vendor/libgit2/src/cli/opt_usage.h
rugged-1.7.1 vendor/libgit2/src/cli/opt_usage.h
rugged-1.6.3 vendor/libgit2/src/cli/opt_usage.h
rugged-1.6.2 vendor/libgit2/src/cli/opt_usage.h
rugged-1.5.1 vendor/libgit2/src/cli/opt_usage.h
rugged-1.5.0.1 vendor/libgit2/src/cli/opt_usage.h
rugged-1.5.0 vendor/libgit2/src/cli/opt_usage.h