[common] use only double-dashed arguments

This commit is contained in:
Mort Yao 2020-12-27 17:22:25 +01:00
parent 45fd2cb607
commit 027130a45a
No known key found for this signature in database
GPG Key ID: 07DA00CB78203251

View File

@ -1559,15 +1559,15 @@ def script_main(download, download_playlist, **kwargs):
playlist_grp = parser.add_argument_group('Playlist optional options')
playlist_grp.add_argument(
'-first', '--first', metavar='FIRST',
'--first', metavar='FIRST',
help='the first number'
)
playlist_grp.add_argument(
'-last', '--last', metavar='LAST',
'--last', metavar='LAST',
help='the last number'
)
playlist_grp.add_argument(
'-size', '--page-size', metavar='PAGE_SIZE',
'--size', '--page-size', metavar='PAGE_SIZE',
help='the page size number'
)