tools: main: cleanup usage output
Cleanup the usage output to show the correct dashes for long options.
Change-Id: Id36c67911e3c892177de67b906327d3839c3fdb5
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/tools/main.cpp b/tools/main.cpp
index eafa162..cc0c707 100644
--- a/tools/main.cpp
+++ b/tools/main.cpp
@@ -42,11 +42,13 @@
void usage(const char* program)
{
- std::fprintf(stderr,
- "Usage: %s -command <command> -interface <interface> -image "
- "<image file> -sig <signature file>\n",
- program);
+ std::fprintf(
+ stderr,
+ "Usage: %s --command <command> --interface <interface> --image "
+ "<image file> --sig <signature file>\n",
+ program);
+ std::fprintf(stderr, "interfaces: ");
std::copy(interfaceList.begin(), interfaceList.end(),
std::ostream_iterator<std::string>(std::cerr, ", "));
std::fprintf(stderr, "\n");