yavta: Fix usage documentation for --field option
PATCH v2 1/1 yavta: Fix usage documentation for --field option
The --field option takes an argument selecting the field order. Update the usage text to reflect this.
Signed-off-by Niklas Söderlund <[email protected]>
---
* Changes since v1
- List all valid filed values.
--- yavta.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
yavta.c +3 -1
@@ -2290,7 +2290,9 @@ static void usage(const char *argv0)printf (" --enum-formats Enumerate formats\n" );printf (" --enum-inputs Enumerate inputs\n" );printf (" --fd Use a numeric file descriptor insted of a device\n" ); -printf (" --field Interlaced format field order\n" ); +printf (" --field field Set the format field order\n" ); +printf ("\tValid values for field are none, top, bottom, interlaced, seq-tb, seq-bt\n" ); +printf ("\talternate, interlaced-tb and interlaced-bt.\n" );printf (" --log-status Log device status\n" );printf (" --no-query Don't query capabilities on open\n" );printf (" --offset User pointer buffer offset from page start\n" );
Signature · 1 line
2.31.1
Hi Niklas,
Thank you for the patch.
Quoted 16 lines · Niklas Söderlund
The --field option takes an argument selecting the field order. Update the usage text to reflect this.
Signed-off-by Niklas Söderlund <[email protected]>---
* Changes since v1
- List all valid filed values.--- yavta.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)yavta.c +0
-0
yavta.c static void usage(const char *argv0) · line 2294
Quoted 6 lines
yavta.c +2
-1@@ -2290,7 +2290,9 @@ static void usage(const char *argv0)printf (" --enum-formats Enumerate formats\n" );printf (" --enum-inputs Enumerate inputs\n" );printf (" --fd Use a numeric file descriptor insted of a device\n" ); -printf (" --field Interlaced format field order\n" ); +printf (" --field field Set the format field order\n" ); +printf ("\tValid values for field are none, top, bottom, interlaced, seq-tb, seq-bt\n" );
Missing ',' after seq-bt.
yavta.c static void usage(const char *argv0) · line 2295
Quoted 1 line
yavta.c +1
-0+printf ("\talternate, interlaced-tb and interlaced-bt.\n" );
One may argue that it would be nice to iterate over the fields array, but that's likely overkill.
Reviewed-by Laurent Pinchart <[email protected]>
and applied with the added comma.
Quoted 3 lines
yavta.c +0
-0printf (" --log-status Log device status\n" );printf (" --no-query Don't query capabilities on open\n" );printf (" --offset User pointer buffer offset from page start\n" );
Signature · 3 lines
Regards, Laurent Pinchart