+ size_t size;
+};
+
+static void usage(void)
+{
+ puts("stlinkv1 command line: ./flash {read|write} /dev/sgX path addr <size>");
+ puts("stlinkv2 command line: ./flash {read|write} path addr <size>");
+ puts(" use hex format for addr and <size>");
+}
+
+static int get_opts(struct opts* o, int ac, char** av)
+{
+ /* stlinkv1 command line: ./flash {read|write} /dev/sgX path addr <size> */
+ /* stlinkv2 command line: ./flash {read|write} path addr <size> */