patch for cli
This commit is contained in:
parent
77effcf649
commit
a2812fb56f
@ -94,7 +94,9 @@ def parse_args(argv):
|
|||||||
parser.add_argument("-MIN", "--minute", type=int, help="Minute in integer. For use with --near.")
|
parser.add_argument("-MIN", "--minute", type=int, help="Minute in integer. For use with --near.")
|
||||||
return parser.parse_args(argv[1:])
|
return parser.parse_args(argv[1:])
|
||||||
|
|
||||||
def main(argv):
|
def main(argv=None):
|
||||||
|
if args is None:
|
||||||
|
args = sys.argv
|
||||||
args = parse_args(argv)
|
args = parse_args(argv)
|
||||||
output = args_handler(args)
|
output = args_handler(args)
|
||||||
print(output)
|
print(output)
|
||||||
|
Loading…
Reference in New Issue
Block a user