Skip to content
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

cli: prioritize --help and fix its output #4213

Merged
merged 1 commit into from
Nov 26, 2021

Conversation

bastimeyer
Copy link
Member

Fixes #4212

Since this isn't the first time that the output of --help didn't get checked after modifying the argparse help texts, I've added some tests.

I've also moved the if args.help statement to the top of main() and prioritized --help by doing that, like it is common with other CLI applications. Streamlink shouldn't suppress the help text if there's an input URL set.

@bastimeyer bastimeyer requested a review from back-to November 26, 2021 21:57
@bastimeyer bastimeyer force-pushed the cli/fix-help-output branch 2 times, most recently from 56173ce to 66bb568 Compare November 26, 2021 22:20
@gravyboat gravyboat merged commit 52820c4 into streamlink:master Nov 26, 2021
@bastimeyer bastimeyer deleted the cli/fix-help-output branch November 26, 2021 23:20
Billy2011 added a commit to Billy2011/streamlink-27 that referenced this pull request Nov 27, 2021
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.

streamlink -h is raising TypeError: not enough arguments for format string
2 participants