nanotool: Add list terminator for long options

Add a list terminator so getopt_long does not read past the end of the
long options array on an unrecognized argument.

Change-Id: I0cdec096b7046ab97251437743944ea2e9592da2
diff --git a/util/nanotool/nanotool.cpp b/util/nanotool/nanotool.cpp
index ac96b0f..cf37945 100644
--- a/util/nanotool/nanotool.cpp
+++ b/util/nanotool/nanotool.cpp
@@ -297,6 +297,7 @@
         {"flash",   required_argument, nullptr, 'f'},
         {"log",     no_argument,       nullptr, 'l'},
         {"index",   required_argument, nullptr, 'i'},
+        {}  // Indicates the end of the option list
     };
 
     auto args = std::unique_ptr<ParsedArgs>(new ParsedArgs());