Closed oh2fih closed 3 years ago
I'll merge it. The original idea (which is still an idea) was to have some additional keywords such as "out-of-vocabulary" name. But this would work with positional arguments as we could an additional option with the type of word we are searching for.
I could have posted this as an issue, but with a pr it's easier to demonstrate this alternative. I'm actually asking to clarify whether there are plans to add any other lookup types than the
--word WORD
? That would make the current syntax a well-founded decision.Otherwise, for the ease of use, would it be ok to alter the syntax from
to positional arguments:
Actually, the current help is a bit contradictory, as the
--word
argument seems both mandatory and optional at the same time:With
nargs='+'
the argparse module internally handles the exception of not giving any arguments, printing the usage:You can merge if you agree, but I wouldn't mind if there were other plans and you'd choose to close this pr. (The documentation is updated accordingly on the same commit.)