FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
libgit2/src/cli/opt_usage.h at master · git-labs/libgit2 · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
git-labs
/
libgit2
Public
forked from
libgit2/libgit2
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
libgit2
/
src
/
cli
/
opt_usage.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
35 lines (30 loc) · 971 Bytes
Breadcrumbs
libgit2
/
src
/
cli
/
opt_usage.h
Copy path
File metadata and controls
35 lines (30 loc) · 971 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
* 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__ */
Back
|
FazBrowse Home
|
New Git URL