mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-22 01:40:28 +00:00
display file: rename name option
Although "file=" is common option name (eg. for testcard), advise rather "name", because "-d file:file=<name>" looks a bit weird (but accept both).
This commit is contained in:
@@ -135,7 +135,7 @@ usage(void)
|
||||
{
|
||||
|
||||
color_printf("Display " TBOLD("file") " syntax:\n");
|
||||
color_printf("\t" TBOLD(TRED("file") "[:file=<name>]") "\n\n");
|
||||
color_printf("\t" TBOLD(TRED("file") "[:name=<filename>]") "\n\n");
|
||||
char desc[] =
|
||||
TBOLD("NUT") " files are written uncompressed. For other file "
|
||||
"formats " TBOLD(
|
||||
@@ -151,7 +151,7 @@ display_file_init(struct module *parent, const char *fmt, unsigned int flags)
|
||||
const char *filename = DEFAULT_FILENAME;
|
||||
UNUSED(parent);
|
||||
if (strlen(fmt) > 0) {
|
||||
if (IS_KEY_PREFIX(fmt, "file")) {
|
||||
if (IS_KEY_PREFIX(fmt, "file") || IS_KEY_PREFIX(fmt, "name")) {
|
||||
filename = strchr(fmt, '=') + 1;
|
||||
} else {
|
||||
usage();
|
||||
|
||||
Reference in New Issue
Block a user