~mdw
/
distorted-keys
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
keyfunc.sh.in: Print usage summary when writing command-specific help.
[distorted-keys]
/
shamir.in
diff --git
a/shamir.in
b/shamir.in
index
06da00f
..
019efc9
100755
(executable)
--- a/
shamir.in
+++ b/
shamir.in
@@
-32,6
+32,9
@@
import base64 as B
from cStringIO import StringIO
import optparse as OPT
from cStringIO import StringIO
import optparse as OPT
+PACKAGE = '@PACKAGE@'
+VERSION = '@VERSION@'
+
###--------------------------------------------------------------------------
### Arithmetic in GF(2^8).
###
###--------------------------------------------------------------------------
### 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)
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.
""")
Split and recombine secrets using Shamir's secret sharing system.
""")