CLI: Video IDs starting with - are interpreted as options, causing errors
Description
When using the from_video_ids command, if any video ID starts with a dash (-), argparse interprets it as an option/flag, resulting in an error like:
ytfetcher: error: unrecognized arguments: -WwShcgXz08 ...
Current workaround
A possible workaround is to pass the video IDs as a single quoted string with the -v option, for example:
ytfetcher from_video_ids ... -v "OjooPjtlSr0 ... -WwShcgXz08 ..."
and then split the string in the code.
and then split the string in the code.
Proposal
Update the CLI to accept a single quoted string for video IDs and split it internally, so users can include IDs starting with - without special handling.
I have implemented this quoted string change locally and can create a pull request if this solution is acceptable.
Open question
Is this the best solution, or is there a more argparse-native way to allow a list of values (some starting with -) without requiring quoting or --? Feedback and alternative suggestions are welcome!