#!/usr/bin/env python2

##
# sub
# https://github.com/leosartaj/sub.git
#
# Copyright (c) 2014 Sartaj Singh
# Licensed under the MIT license.
##

"""
Script for using sub
"""

import sys
from sub.sub import download
from sub.sub import parse_args

if __name__ == '__main__':
    try:
        options, dwn_this = parse_args()
        for this in dwn_this:
            download(this, options)
    except KeyboardInterrupt:
        sys.exit()
