mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2025-01-01 15:55:17 +00:00
Clarify usage function name (rename it to print_usage).
This commit is contained in:
parent
cbea9ee045
commit
01d2ce36d1
@ -50,7 +50,7 @@ int main(int argc, char *argv[])
|
||||
ret = parse_parameters (&ccx_options, argc, argv);
|
||||
if (ret == EXIT_NO_INPUT_FILES)
|
||||
{
|
||||
usage ();
|
||||
print_usage ();
|
||||
fatal (EXIT_NO_INPUT_FILES, "(This help screen was shown because there were no input files)\n");
|
||||
}
|
||||
else if (ret == EXIT_WITH_HELP)
|
||||
|
@ -151,7 +151,7 @@ void dinit_libraries( struct lib_ccx_ctx **ctx);
|
||||
|
||||
//params.c
|
||||
int parse_parameters (struct ccx_s_options *opt, int argc, char *argv[]);
|
||||
void usage (void);
|
||||
void print_usage (void);
|
||||
int detect_input_file_overwrite(struct lib_ccx_ctx *ctx, const char *output_filename);
|
||||
int atoi_hex (char *s);
|
||||
int stringztoms (const char *s, struct ccx_boundary_time *bt);
|
||||
|
@ -275,7 +275,7 @@ void set_input_format (struct ccx_s_options *opt, const char *format)
|
||||
fatal (EXIT_MALFORMED_PARAMETER, "Unknown input file format: %s\n", format);
|
||||
}
|
||||
|
||||
void usage (void)
|
||||
void print_usage (void)
|
||||
{
|
||||
mprint ("Originally based on McPoodle's tools. Check his page for lots of information\n");
|
||||
mprint ("on closed captions technical details.\n");
|
||||
@ -983,7 +983,7 @@ int parse_parameters (struct ccx_s_options *opt, int argc, char *argv[])
|
||||
{
|
||||
if (!strcmp (argv[i],"--help") || !strcmp(argv[i], "-h"))
|
||||
{
|
||||
usage();
|
||||
print_usage();
|
||||
return EXIT_WITH_HELP;
|
||||
}
|
||||
if (!strcmp(argv[i], "--version"))
|
||||
|
Loading…
Reference in New Issue
Block a user