Commit e7cbb002 authored by Laros's avatar Laros
Browse files

Added defaults in help.

parent 8309cac2
...@@ -22,7 +22,7 @@ Licensed under the MIT license, see the LICENSE file. ...@@ -22,7 +22,7 @@ Licensed under the MIT license, see the LICENSE file.
RELEASE = False RELEASE = False
__version_info__ = ('0', '5', '0') __version_info__ = ('0', '5', '1')
__version__ = '.'.join(__version_info__) __version__ = '.'.join(__version_info__)
......
...@@ -208,7 +208,7 @@ def main(): ...@@ -208,7 +208,7 @@ def main():
help="input file") help="input file")
distance_parser = argparse.ArgumentParser(add_help=False) distance_parser = argparse.ArgumentParser(add_help=False)
distance_parser.add_argument("-d", dest="distance", type=int, default=3, distance_parser.add_argument("-d", dest="distance", type=int, default=3,
help="minimum distance between the barcodes") help="minimum distance between the barcodes (int default=%(default)s)")
distance_parser.add_argument("-H", dest="hamming", default=False, distance_parser.add_argument("-H", dest="hamming", default=False,
action="store_true", help="use Hamming distance") action="store_true", help="use Hamming distance")
...@@ -222,9 +222,9 @@ def main(): ...@@ -222,9 +222,9 @@ def main():
parser_make = subparsers.add_parser("make", parents=[output_parser, parser_make = subparsers.add_parser("make", parents=[output_parser,
distance_parser], description=docSplit(barcode)) distance_parser], description=docSplit(barcode))
parser_make.add_argument("-l", dest="length", type=int, default=8, parser_make.add_argument("-l", dest="length", type=int, default=8,
help="lenght of the barcodes") help="lenght of the barcodes (int default=%(default)s)")
parser_make.add_argument("-s", dest="stretch", type=int, default=2, parser_make.add_argument("-s", dest="stretch", type=int, default=2,
help="maximum mononucleotide stretch length") help="maximum mononucleotide stretch length (int default=%(default)s)")
parser_test = subparsers.add_parser("test", parents=[input_parser, parser_test = subparsers.add_parser("test", parents=[input_parser,
distance_parser], description=docSplit(testBarcodes)) distance_parser], description=docSplit(testBarcodes))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment