mirror of
https://github.com/soimort/you-get.git
synced 2025-02-03 08:43:58 +03:00
[common.py] switch to gnu_getopt
This commit is contained in:
parent
96398d8f6c
commit
86493087d4
@ -1193,7 +1193,7 @@ def script_main(script_name, download, download_playlist, **kwargs):
|
||||
opts = ['playlist'] + opts
|
||||
|
||||
try:
|
||||
opts, args = getopt.getopt(sys.argv[1:], short_opts, opts)
|
||||
opts, args = getopt.gnu_getopt(sys.argv[1:], short_opts, opts)
|
||||
except getopt.GetoptError as err:
|
||||
log.e(err)
|
||||
log.e("try 'you-get --help' for more options")
|
||||
|
Loading…
Reference in New Issue
Block a user