]> git.gsnw.org Git - fping.git/commitdiff
main: add missing getopt_long specification for -z debug argument
authorSteven Noonan <steven@uplinklabs.net>
Sun, 1 Apr 2018 06:43:41 +0000 (23:43 -0700)
committerSteven Noonan <steven@uplinklabs.net>
Wed, 10 Jun 2020 00:46:09 +0000 (17:46 -0700)
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
src/fping.c

index a6fd66892f43f57e14ede7d1f9fb0a5703b122e9..7905c58a0622922b3ce649c5315bb9df8664b994 100644 (file)
@@ -437,6 +437,9 @@ int main(int argc, char** argv)
         { "unreach", 'u', OPTPARSE_NONE },
         { "version", 'v', OPTPARSE_NONE },
         { "reachable", 'x', OPTPARSE_REQUIRED },
+#if defined(DEBUG) || defined(_DEBUG)
+        { NULL, 'z', OPTPARSE_REQUIRED },
+#endif
         { 0, 0, 0 }
     };