1
0
mirror of https://github.com/l1ving/youtube-dl synced 2026-06-08 00:49:29 +08:00

UX: Add a note about the help if no parameters are passed

When I tried to display the help, the necessary command wasn't intuitively clear to me.
I would suggest to add a small note how one can display the help if no parameters are passed.
This commit is contained in:
Pat Mächler
2015-01-29 13:33:44 +01:00
Unverified
parent dcf53d4408
commit 0a202fc285
+2 -1
View File
@@ -361,7 +361,8 @@ 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'
'For more details on how to use the program type "youtube-dl -h"')
try:
if opts.load_info_filename is not None: