Skip to content

cli.argparser: Fix single hyphen params at the beginning of --player-args #2333

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 12, 2019

Conversation

back-to
Copy link
Collaborator

@back-to back-to commented Mar 1, 2019

use workaround solution from

https://bugs.python.org/issue9334

don't know if there is any downside,
but seems like it could work

it can be reversed, if there are some issue

closes #971

…args

use workaround solution from

https://bugs.python.org/issue9334

don't know if there is any downside,
but seems like it could work

it can be reversed, if there are some issue

closes streamlink#971
@codecov
Copy link

codecov bot commented Mar 1, 2019

Codecov Report

Merging #2333 into master will increase coverage by 0.01%.
The diff coverage is 71.42%.

@@            Coverage Diff             @@
##           master    #2333      +/-   ##
==========================================
+ Coverage   52.59%   52.61%   +0.01%     
==========================================
  Files         237      237              
  Lines       14797    14811      +14     
==========================================
+ Hits         7783     7793      +10     
- Misses       7014     7018       +4

@bastimeyer
Copy link
Member

Is this compatible with all versions?

@back-to
Copy link
Collaborator Author

back-to commented Mar 18, 2019

@bastimeyer
travis did not fail, so it might be.

@bastimeyer
Copy link
Member

I was just wondering because all that's being tested here is this special case and not the entire argparser testsuite.

Just had a look at it again and didn't realize that all that was added here is the first if match is None block, at least compared to 3.7 (you posted this on the other issue). So yeah, looks like it's fine. 😅

@back-to
Copy link
Collaborator Author

back-to commented Apr 12, 2019

as you are fine with it @bastimeyer ,
I merge it and lets see if something breaks 🐰

@back-to back-to merged commit 5e4cebd into streamlink:master Apr 12, 2019
@back-to back-to deleted the bug971 branch April 13, 2019 09:39
mkbloke pushed a commit to mkbloke/streamlink that referenced this pull request Aug 18, 2020
cli.argparser: Fix single hyphen params at the beginning of --player-args
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Parsing issue in --player-args
2 participants