From 13a0086fdca1492ce9dbc50ec6bf8759c7d62893 Mon Sep 17 00:00:00 2001 From: Leandro Lisboa Penz Date: Mon, 14 Feb 2011 20:31:24 -0200 Subject: [PATCH] Program name and version. --- atdtool | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/atdtool b/atdtool index 93ffbf2..61b7195 100755 --- a/atdtool +++ b/atdtool @@ -15,6 +15,9 @@ import urllib from xml.etree import ElementTree +PROGRAM_NAME = "atdtool" +PROGRAM_VERSION = "1.0" + def checkDocument(cfg, fd): '''Invoke checkDocument service and return a list of errors.''' @@ -157,6 +160,7 @@ def showerrs(filename, fd, errs): def main(): parser = OptionParser(usage='Usage: %prog ', + version="%prog "+PROGRAM_VERSION, description='''\ atdtool submits the given file to the After the Deadline language checking service at http://www.afterthedeadline.com/ and presents the results in