mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-24 03:29:28 +01:00
pylink-contribdl: link to contrib modules list if no argument is given
This commit is contained in:
parent
3f4bf72248
commit
664bd3a89f
@ -21,6 +21,13 @@ if __name__ == '__main__':
|
|||||||
parser.add_argument('--version', '-v', nargs='?', help='specifies the tag (version) to download from',
|
parser.add_argument('--version', '-v', nargs='?', help='specifies the tag (version) to download from',
|
||||||
default='master')
|
default='master')
|
||||||
parser.add_argument('--yes', '-y', action='store_true', help='skip yes/no confirmations')
|
parser.add_argument('--yes', '-y', action='store_true', help='skip yes/no confirmations')
|
||||||
|
|
||||||
|
if len(sys.argv) < 2:
|
||||||
|
parser.print_help()
|
||||||
|
print()
|
||||||
|
print('For a list of available contrib modules, see %s' % BASE_URL)
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
print('This will download the following URLs:')
|
print('This will download the following URLs:')
|
||||||
|
Loading…
Reference in New Issue
Block a user