+# Set up argument parser (see https://docs.python.org/3.7/library/argparse.html )
+parser = argparse.ArgumentParser(
+ description='Delay activity for a random number of seconds. Delays sampled from an inverse gaussian distribution.',
+ epilog="Author: Steven Baltakatei Sandoval. License: GPLv3+");
+parser.add_argument('-v','--verbose',
+ action='count',
+ dest='verbosity',
+ default=0,
+ help='Verbose output. (repeat for increased verbosity)');
+parser.add_argument('mean',
+ action='store',
+ metavar='SECONDS',
+ nargs=1,
+ default=1,
+ type=float,
+ help='Mean seconds of delay. Is the mean of the inverse gaussian distribution.');
+parser.add_argument('--precision','-p',
+ action='store',
+ metavar='P',
+ nargs=1,
+ default=[4.0],
+ type=float,
+ help='How concentrated delays are around the mean (default: 4.0). Must be a positive integer or floating point value. Is the lambda factor in the inverse gaussian distribution. High values (e.g. > 10.0) cause random delays to rarely stray far from MEAN. Small values (e.g. < 0.10) result in many small delays plus occasional long delays.');
+args = parser.parse_args();