name for a mutually inclusive relationship

Ethan Furman ethan at stoneleaf.us
Wed Feb 24 16:31:42 EST 2021


On 2/24/21 1:23 PM, 2QdxY4RzWzUUiLuE at potatochowder.com wrote:

>> entangled (none or all):
>>
>>     image size override:  height   width
> 
> IMO, that's *one* option (-s 640x480 or -s 640,480), not two.  In
> argparse/optparse terms, a required argument with a custom type.
> 
> (OTOH, in a GUI, it'd be two separate mandatory text fields, both
> controlled (i.e., enabled or disabled) by one checkbox.)

I didn't say it was a good example.  ;-)  Hopefully it gets the idea across.

--
~Ethan~



More information about the Python-list mailing list