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:
parent
dcf53d4408
commit
0a202fc285
@ -361,7 +361,8 @@ def _real_main(argv=None):
|
|||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
ydl.warn_if_short_id(sys.argv[1:] if argv is None else argv)
|
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:
|
try:
|
||||||
if opts.load_info_filename is not None:
|
if opts.load_info_filename is not None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user