projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7a14d9
)
[__init__] Provide a better error messages if URLs are missing (Closes #4813)
author
Philipp Hagemeister
<phihag@phihag.de>
Fri, 30 Jan 2015 00:56:15 +0000
(
01:56
+0100)
committer
Philipp Hagemeister
<phihag@phihag.de>
Fri, 30 Jan 2015 00:56:15 +0000
(
01:56
+0100)
youtube_dl/__init__.py
patch
|
blob
|
history
diff --git
a/youtube_dl/__init__.py
b/youtube_dl/__init__.py
index 71d2c6f350beacecda8f844c2bd337c95732c61a..e90679ff974e6464885284733edf96ab4aca09b9 100644
(file)
--- a/
youtube_dl/__init__.py
+++ b/
youtube_dl/__init__.py
@@
-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: