OP = O.OptionParser(
usage = '%prog SECTION FILE|DIRECTORY ...',
- version = '%%prog, version %s' % VERSION,
+ version = '%%prog, %s version %s' % (PACKAGE, VERSION),
description = '''\
Parse the configurations FILE and DIRECTORY contents, and output the named
SECTION as a sequence of simple assignments.
from cStringIO import StringIO
import optparse as OPT
+PACKAGE = '@PACKAGE@'
+VERSION = '@VERSION@'
+
###--------------------------------------------------------------------------
### Arithmetic in GF(2^8).
###
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.
""")