[Python-ideas] Re: argparse: mutually inclusive arguments

2021-02-26 Thread Stephen J. Turnbull
Oscar Benjamin writes: > On Fri, 26 Feb 2021 at 02:49, Stephen J. Turnbull > wrote: > > Thing is, this "mutual inclusion" condition isn't really about parsing > > (ie, syntax)[1]; this is about semantics -- like all input validation. > > I don't object to having it in argparse, but it's goin

[Python-ideas] Re: argparse: mutually inclusive arguments

2021-02-26 Thread Oscar Benjamin
On Fri, 26 Feb 2021 at 02:49, Stephen J. Turnbull wrote: > > David Mertz writes: > > On Wed, Feb 24, 2021 at 1:38 PM Paul Korir wrote: > > > > > I've been using the argparse library for a long time and one use case > that > > > repeatedly shows us is the need to have two arguments appear tog

[Python-ideas] Re: argparse: mutually inclusive arguments

2021-02-25 Thread Stephen J. Turnbull
David Mertz writes: > On Wed, Feb 24, 2021 at 1:38 PM Paul Korir wrote: > > > I've been using the argparse library for a long time and one use case that > > repeatedly shows us is the need to have two arguments appear together i.e > > either both appear or none of them appear. I'll refer to

[Python-ideas] Re: argparse: mutually inclusive arguments

2021-02-24 Thread David Mertz
On Wed, Feb 24, 2021 at 1:38 PM Paul Korir wrote: > I've been using the argparse library for a long time and one use case that > repeatedly shows us is the need to have two arguments appear together i.e > either both appear or none of them appear. I'll refer to these as *mutually > inclusive* in

[Python-ideas] Re: argparse: mutually inclusive arguments

2021-02-24 Thread Ricky Teachey
On Wed, Feb 24, 2021 at 8:39 AM Paul Korir wrote: > Hi All, > > I've been using the argparse library for a long time and one use case that > repeatedly shows us is the need to have two arguments appear together i.e > either both appear or none of them appear. I'll refer to these as *mutually > in