[Git][NTPsec/ntpsec][master] Add inline help in ntpq for "units" subcommand

Matt Selsky gitlab at mg.gitlab.com
Sun May 14 18:51:03 UTC 2017


Matt Selsky pushed to branch master at NTPsec / ntpsec


Commits:
ccc5a303 by Matt Selsky at 2017-05-14T14:27:10-04:00
Add inline help in ntpq for "units" subcommand

- - - - -


1 changed file:

- ntpclients/ntpq


Changes:

=====================================
ntpclients/ntpq
=====================================
--- a/ntpclients/ntpq
+++ b/ntpclients/ntpq
@@ -454,6 +454,12 @@ usage: help [ command ]
         "toggle unit display"
         self.showunits = not self.showunits
 
+    def help_units(self):
+        self.say("""\
+function: toggle unit display
+usage: units
+""")
+
     def do_EOF(self, _unused):
         "exit ntpq"
         self.say("\n")



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

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/ccc5a30330f97c4cea0354431ca1bee134f7b145
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/20170514/c1743f74/attachment.html>


More information about the vc mailing list