mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-23 18:14:06 +00:00
[cleanup] Print uvg266 version every time the CLI is launched, fix manpage and README gen
This commit is contained in:
parent
d3e8ce026a
commit
20ecb128cd
|
@ -385,7 +385,6 @@ void cmdline_opts_free(const uvg_api *const api, cmdline_opts_t *opts)
|
|||
|
||||
void print_usage(void)
|
||||
{
|
||||
print_version();
|
||||
fprintf(stdout,
|
||||
"usage: -i and --input-res to set input, -o to set output\n"
|
||||
" --help for more information\n");
|
||||
|
@ -401,7 +400,6 @@ void print_version(void)
|
|||
|
||||
void print_help(void)
|
||||
{
|
||||
print_version();
|
||||
fprintf(stdout,
|
||||
"Usage:\n"
|
||||
"uvg266 -i <input> --input-res <width>x<height> -o <output>\n"
|
||||
|
|
|
@ -479,6 +479,8 @@ int main(int argc, char *argv[])
|
|||
|
||||
const uvg_api * const api = uvg_api_get(8);
|
||||
|
||||
print_version();
|
||||
|
||||
opts = cmdline_opts_parse(api, argc, argv);
|
||||
// If problem with command line options, print banner and shutdown.
|
||||
if (!opts) {
|
||||
|
|
|
@ -18,7 +18,7 @@ uvg266 \- open source VVC encoder
|
|||
.SH DESCRIPTION
|
||||
EOF
|
||||
|
||||
../bin/uvg266 --help 2>&1 | tail -n+5 | head -n-4 | \
|
||||
../bin/uvg266 --help 2>&1 | tail -n+5 | \
|
||||
sed 's| : |\n|g;
|
||||
s| :$||g;
|
||||
s|^ --|.TP\n\\fB--|g;
|
||||
|
|
|
@ -42,7 +42,7 @@ readme_file="../README.md"
|
|||
{
|
||||
sed '/BEGIN UVG266 HELP MESSAGE/q' -- "$readme_file";
|
||||
printf '```\n';
|
||||
../bin/uvg266 --help;
|
||||
../bin/uvg266 --help 2>&1 | tail -n+2;
|
||||
printf '```\n';
|
||||
sed -n '/END UVG266 HELP MESSAGE/{:a;p;n;ba}' -- "$readme_file";
|
||||
} >> "$tmpfile"
|
||||
|
|
Loading…
Reference in a new issue