From: zooko Date: Fri, 9 Nov 2007 04:56:43 +0000 (+0530) Subject: zfec: merge two ways to set the default K and M for cmdline_zfec to 3 and 8 X-Git-Url: https://git.rkrishnan.org/%5B/frontends/%22file:/%22doc.html//%22%22?a=commitdiff_plain;h=c9e72a8b0019babb62614cfcdf45fff8a60f0cdc;p=tahoe-lafs%2Fzfec.git zfec: merge two ways to set the default K and M for cmdline_zfec to 3 and 8 darcs-hash:8c2b921926d682b682fe2673a2d291597b0abfc5 --- diff --git a/zfec/zfec/cmdline_zfec.py b/zfec/zfec/cmdline_zfec.py index f8464d3..d3c5455 100755 --- a/zfec/zfec/cmdline_zfec.py +++ b/zfec/zfec/cmdline_zfec.py @@ -27,8 +27,8 @@ def main(): parser.add_argument('-d', '--output-dir', help='directory in which share file names will be created (default ".")', default='.', metavar='D') parser.add_argument('-p', '--prefix', help='prefix for share file names; If omitted, the name of the input file will be used.', metavar='P') parser.add_argument('-s', '--suffix', help='suffix for share file names (default ".fec")', default='.fec', metavar='S') - parser.add_argument('-m', '--totalshares', help='the total number of share files created (default 16)', default=16, type=int, metavar='M') - parser.add_argument('-k', '--requiredshares', help='the number of share files required to reconstruct (default 4)', default=4, type=int, metavar='K') + parser.add_argument('-m', '--totalshares', help='the total number of share files created (default %d)' % DEFAULT_M, default=DEFAULT_M, type=int, metavar='M') + parser.add_argument('-k', '--requiredshares', help='the number of share files required to reconstruct (default %d)' % DEFAULT_K, default=DEFAULT_K, type=int, metavar='K') parser.add_argument('-f', '--force', help='overwrite any file which already in place an output file (share file)', action='store_true') parser.add_argument('-v', '--verbose', help='print out messages about progress', action='store_true') parser.add_argument('-q', '--quiet', help='quiet progress indications and warnings about silly choices of K and M', action='store_true')