diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2015-01-30 01:56:15 +0100 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2015-01-30 01:56:15 +0100 |
commit | adc0ae3ceb9371eb23a9a4d81d0e134ac861723e (patch) | |
tree | 85630487f46c5e78a3c224569831f42b056057b4 /youtube_dl | |
parent | a7a14d958604f5334413e2fc1872a8317d5e4884 (diff) |
[__init__] Provide a better error messages if URLs are missing (Closes #4813)
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/__init__.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.py index 71d2c6f35..e90679ff9 100644 --- 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: |