cli: Add print function for generic CLI options

Change-Id: I3d5d73c6184dd65c9eacbb2f69c6e1a565d41ab0
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.sourcearcade.org/c/flashprog/+/267
diff --git a/cli_common.c b/cli_common.c
index 024881c..90c54b1 100644
--- a/cli_common.c
+++ b/cli_common.c
@@ -213,6 +213,19 @@
 	return 0;
 }
 
+void print_generic_options(void)
+{
+	fprintf(stderr, "\n"
+		"Where generic <options> are\n"
+		"    -p | --programmer <name>[:<params>] specify the programmer device. One of\n");
+	list_programmers_linebreak(12, 80, 0);
+	fprintf(stderr, "\n"
+		"    -c | --chip <chipname>              probe only for specified flash chip\n"
+		"    -V | --verbose                      more verbose output\n"
+		"    -o | --output <logfile>             log output to <logfile>\n"
+		"    -h | --help                         print help text\n");
+}
+
 void print_chip_support_status(const struct flashchip *chip)
 {
 	if (chip->feature_bits & FEATURE_OTP) {