From 3db408199e16c4b095542236e5a1cbf07b9a3103 Mon Sep 17 00:00:00 2001 From: Yi Hsiao Date: Sun, 26 Aug 2018 23:14:56 -0400 Subject: [PATCH] handle no arguments are supplied --- rnannot/parser.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rnannot/parser.py b/rnannot/parser.py index 94398d0..4d7c3cb 100644 --- a/rnannot/parser.py +++ b/rnannot/parser.py @@ -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