Skip to content

Commit

Permalink
handle no arguments are supplied
Browse files Browse the repository at this point in the history
  • Loading branch information
hsiaoyi0504 committed Oct 15, 2018
1 parent d6a8852 commit 3db4081
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rnannot/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,7 @@ def parse_args(argv):
parser.add_argument('-o', '--outdir', dest='outdir', nargs='?', default='.',
help='directory of output folder at, if not specified, use current folder')
parser.add_argument('-d', '--downsample', dest='downsample', default=False,action='store_true', help='if specified, a downsampled bam file will be downsampled')
if len(argv) == 0:
parser.print_help(sys.stderr)
args = parser.parse_args(argv)
return args

0 comments on commit 3db4081

Please sign in to comment.