[Git][NTPsec/ntpsec][master] ntpviz: document option file.

Gary E. Miller gitlab at mg.gitlab.com
Wed Oct 5 02:54:43 UTC 2016


Gary E. Miller pushed to branch master at NTPsec / ntpsec


Commits:
3b0006ab by Gary E. Miller at 2016-10-04T19:53:26-07:00
ntpviz: document option file.

- - - - -


2 changed files:

- docs/includes/ntpviz-body.txt
- ntpstats/ntpviz


Changes:

=====================================
docs/includes/ntpviz-body.txt
=====================================
--- a/docs/includes/ntpviz-body.txt
+++ b/docs/includes/ntpviz-body.txt
@@ -7,22 +7,27 @@
 [verse]
 {ntpviz} [-d statsdir] [-g] [-n name] [-p period]
          [-s starttime] [-e endtime]
-         [--local-offset | --local-error | --local-jitter | --local-stability]
-	 [   --all-peer-jitters
-	   | --all-peer-offsets
-	   | --local-gps
-	   | --local-offset-histogram
-	   | --local-offset-multiplot
-	   | --local-temps
-           | --peer-jitters=hosts 
-           | --peer-offsets=hosts ]
-	 [-o outdir]
-	 [-D N]
+         [--local-offset |
+          --local-error |
+          --local-jitter |
+          --local-stability |
+          --all-peer-jitters |
+          --all-peer-offsets |
+          --local-gps |
+          --local-offset-histogram |
+          --local-offset-multiplot |
+          --local-temps |
+          --peer-jitters=hosts |
+          --peer-offsets=hosts |
+         ]
+         [-o outdir]
+         [-D N]
+         [@optionfile]
 
 == DESCRIPTION ==
 
 This utility analyzes files in an NTP log directory and generates
-statistical plots from them.  It can report either PNG images or the
+statistical plots from them.  It can output either PNG images or the
 GNUPLOT programs to generate them to standard output.  In its default
 mode it generates an HTML directory containing an index page and
 either (a) all plots, for a single statfiles directory, or (b) a
@@ -134,6 +139,24 @@ text will be used as the HTML title of the generated index.
 The code includes various sanity checks and will bail out with a message to
 standard error on, for example, missing logfile data required for a plot.
 
+=== Argument File ===
+
+All command line options can also be placed into a command file.  The
+command file name is prefixed on the command line with an ampersand (@).
+
+Each line in the command file must contain just one option.  When an
+option takes a parameter, the option and parameter must be separated by
+an equal sign (=).
+
+These two ways to invoke ntpviz are equvalent:
+
+    $ ntpviz --period 1 --outdir day
+
+    $ ntpviz @day/config
+    $ cat day/config
+    --period=1
+    --outdir=day
+
 == REQUIREMENTS ==
 
 Python and GNUPLOT.  The plots will look better with the 'liberation'


=====================================
ntpstats/ntpviz
=====================================
--- a/ntpstats/ntpviz
+++ b/ntpstats/ntpviz
@@ -829,6 +829,8 @@ if __name__ == '__main__':
     parser = argparse.ArgumentParser(description="ntpd stats visualizer",
                 fromfile_prefix_chars='@',
                 epilog = """
+You can place command line options in a file, one per line.
+
 See the manual page for details.
 
 Python by ESR, concept and GNUPLOT code by Dan Drown.



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/3b0006abf68c802b030aaae53fbc396e6ae32ee6
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20161005/3dd1d17b/attachment.html>


More information about the vc mailing list