[Git][NTPsec/ntpsec][master] Rename of ntpq long option log-to-file to logfile (same as ntpd)

Ian Bruene gitlab at mg.gitlab.com
Thu Jun 15 22:06:29 UTC 2017


Ian Bruene pushed to branch master at NTPsec / ntpsec


Commits:
02d63ed6 by Ian Bruene at 2017-06-15T16:46:53-05:00
Rename of ntpq long option log-to-file to logfile (same as ntpd)

- - - - -


2 changed files:

- docs/includes/ntpq-body.txt
- ntpclients/ntpq


Changes:

=====================================
docs/includes/ntpq-body.txt
=====================================
--- a/docs/includes/ntpq-body.txt
+++ b/docs/includes/ntpq-body.txt
@@ -70,7 +70,7 @@ read interactive format commands from the standard input.
   Increase debugging level by 1.
 +-D+ num, +--set-debug-level+=num::
   The debug level is set to the following integer argument.
-+-l+ filename, +--log-to-file+=filename""
++-l+ filename, +--logfile+=filename::
   Log debugging output to the specified file.
 +-h+, +--help+::
   Print a usage message summarizing options end exit.


=====================================
ntpclients/ntpq
=====================================
--- a/ntpclients/ntpq
+++ b/ntpclients/ntpq
@@ -1575,7 +1575,7 @@ USAGE: ntpq [-46dphinOV] [-c str] [-D lvl] [host ...]
                                 - may appear multiple times
    -d no  debug-level     Increase output debug message level
                                 - may appear multiple times
-   -l Str log-to-file     Logs debug messages to the provided filename
+   -l Str logfile         Logs debug messages to the provided filename
    -D Int set-debug-level Set the output debug message level
                                 - may appear multiple times
    -h no  help            Print a usage message.
@@ -1601,7 +1601,7 @@ if __name__ == '__main__':
              "command=", "debug", "set-debug-level=",
              "help", "keyfile", "numeric", "peers",
              "version", "wide", "width=", "units",
-             "log-to-file="])
+             "logfile="])
     except getopt.GetoptError as e:
         sys.stderr.write("%s\n" % e)
         sys.stderr.write(usage)
@@ -1652,7 +1652,7 @@ if __name__ == '__main__':
                                                          errmsg, usage)
         elif switch in ("-u", "--units"):
             interpreter.showunits = True
-        elif switch in ("-l", "--log-to-file"):
+        elif switch in ("-l", "--logfile"):
             if logfp != sys.stderr:
                 logfp.close()
             logfp = open(val, "a", 1)  # 1 => line buffered



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/02d63ed623e0ad67240d54f5d6de0fed588b12d4

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/02d63ed623e0ad67240d54f5d6de0fed588b12d4
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170615/e4697b63/attachment.html>


More information about the vc mailing list