X-Git-Url: https://git.distorted.org.uk/~mdw/distorted-keys/blobdiff_plain/599c8f754492a6555503fedb8a2662ec229fb8e8..0bc47568f2c94d6e48bc389ac508d5f905daa9c7:/shamir.in diff --git a/shamir.in b/shamir.in index 06da00f..019efc9 100755 --- a/shamir.in +++ b/shamir.in @@ -32,6 +32,9 @@ import base64 as B from cStringIO import StringIO import optparse as OPT +PACKAGE = '@PACKAGE@' +VERSION = '@VERSION@' + ###-------------------------------------------------------------------------- ### Arithmetic in GF(2^8). ### @@ -543,7 +546,10 @@ class SubcommandOptionParser (OPT.OptionParser, object): opts, args = op.parse_args(args[1:]) sub.func(gopts, opts, args) -OPTPARSE = SubcommandOptionParser(description = """\ +OPTPARSE = SubcommandOptionParser( + usage = '%prog SUBCOMMAND [ARGS ...]', + version = '%%prog, %s version %s' % (PACKAGE, VERSION), + description = """\ Split and recombine secrets using Shamir's secret sharing system. """)