From 78e6468ebdff41e34e5637bb0f23b0e0abe11ac1 Mon Sep 17 00:00:00 2001 From: Alasdair Colley Date: Wed, 31 Jul 2013 11:52:24 +0100 Subject: making help text more informative --- perc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/perc b/perc index 4867c34..f5283c0 100755 --- a/perc +++ b/perc @@ -64,7 +64,7 @@ import math from datetime import datetime, date, timedelta, time PROG = "perc" -VERSION = "3.4" +VERSION = "3.5" CONFIG_FILE = "perc.cfg" CUSTOM_CONFIG_FILE = "custom_perc.cfg" @@ -722,7 +722,7 @@ def admin(args): def user(args): global options - parser = optparse.OptionParser("{0} [options] | {0} [options]. Custom Events: {1}".format(PROG, ", ".join(CUSTOM_CONFIG["EVENTS"].keys() if "EVENTS" in CUSTOM_CONFIG else []))) + parser = optparse.OptionParser("{0} [options] | {0} [options] | {0} admin -a -s -f ".format(PROG)) #"Custom Events: {1}".format(PROG, ", ".join(CUSTOM_CONFIG["EVENTS"].keys() if "EVENTS" in CUSTOM_CONFIG else []))) parser.add_option("-v", "--version", action="store_true", dest="version", help="Display the version of %s" % PROG) parser.add_option("-s", "--start", action="store", dest="start", help="The start time of your particular day") parser.add_option("-f", "--finish", action="store", dest="finish", help="The finish time of your particular day") -- cgit v1.2.3