Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Merged
gravyboat merged 1 commit into
streamlink:masterfrom
bastimeyer:cli/fix-help-output
Nov 26, 2021
Merged

cli: prioritize --help and fix its output#4213
gravyboat merged 1 commit into
streamlink:masterfrom
bastimeyer:cli/fix-help-output

Conversation

@bastimeyer

Copy link
Copy Markdown
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