[__init__] Provide a better error messages if URLs are missing (Closes #4813)

pull/8/head
Philipp Hagemeister 2015-01-30 01:56:15 +01:00
rodzic a7a14d9586
commit adc0ae3ceb
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -361,7 +361,9 @@ def _real_main(argv=None):
sys.exit()
ydl.warn_if_short_id(sys.argv[1:] if argv is None else argv)
parser.error('you must provide at least one URL')
parser.error(
'You must provide at least one URL.\n'
'Type youtube-dl --help to see a list of all options.')
try:
if opts.load_info_filename is not None: