[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nmh-workers] switches and smatch
From: |
Ken Hornstein |
Subject: |
Re: [Nmh-workers] switches and smatch |
Date: |
Sun, 28 Jan 2018 21:34:58 -0500 |
>> Agreed, this needs a good cleaning.
>
>I'd like to see a lot of the noddy `-foo sets bool foo, -nofoo clears
>it'-case processing in a switch disappear into a central, new,
>option-processing routine.
FWIW, I'm fine with that. But ... as long as we're making a list of
things that we should add to smatch(), here are a few others that would
be helpful.
- We have a lot of commands that call OTHER commands, and a lot of switches
need to be passed down. post(8) is the biggest offender here; a lot
of switches to send(1) are really switches to post(8), and when you add
a new switch to post(8) you have to add it to send(1) AND whatnow(1)
and whom(1) and probably one or two more places that I forget. Being
able to declare a list of arguments to post(8) that could be used by other
programs would be a HUGE win. I think this would require an extension to
smatch to make it work properly, though.
- Having a common switch that would spit out a list of switches that a
program takes and _whether or not they take arguments_ would ALSO be
a huge win. Why? Well, let's say you write your own postproc; it turns
out you need to know which switches take arguments. Being able to
get a list of switches and figure out which ones take arguments would
sure be useful for shell scripting (I realize you could maybe do this
with the existing -help output, but it would be a bit hairy and I'd
rather have something easier to use).
--Ken
- Re: [Nmh-workers] rcvdist with non-default port, (continued)
- Re: [Nmh-workers] rcvdist with non-default port, David Levine, 2018/01/15
- Re: [Nmh-workers] rcvdist with non-default port, Ken Hornstein, 2018/01/15
- Re: [Nmh-workers] rcvdist with non-default port, David Levine, 2018/01/15
- Re: [Nmh-workers] rcvdist with non-default port, Ken Hornstein, 2018/01/15
- Re: [Nmh-workers] rcvdist with non-default port, David Levine, 2018/01/15
- Re: [Nmh-workers] rcvdist with non-default port, Steven Winikoff, 2018/01/15
- Re: [Nmh-workers] rcvdist with non-default port, David Levine, 2018/01/15
- Re: [Nmh-workers] rcvdist with non-default port, Ralph Corderoy, 2018/01/27
- Re: [Nmh-workers] switches and smatch, David Levine, 2018/01/27
- Re: [Nmh-workers] switches and smatch, Ralph Corderoy, 2018/01/27
- Re: [Nmh-workers] switches and smatch,
Ken Hornstein <=
- Re: [Nmh-workers] switches and smatch, Paul Vixie, 2018/01/28
- Re: [Nmh-workers] switches and smatch, Ken Hornstein, 2018/01/28
- Re: [Nmh-workers] switches and smatch, Ralph Corderoy, 2018/01/29
- Re: [Nmh-workers] switches and smatch, Bakul Shah, 2018/01/29
- Re: [Nmh-workers] switches and smatch, Ken Hornstein, 2018/01/29
- Re: [Nmh-workers] switches and smatch, Ralph Corderoy, 2018/01/30
- Re: [Nmh-workers] switches and smatch, Bakul Shah, 2018/01/30
- Re: [Nmh-workers] rcvdist with non-default port, David Levine, 2018/01/14
- Re: [Nmh-workers] rcvdist with non-default port, Ralph Corderoy, 2018/01/18
- Re: [Nmh-workers] rcvdist with non-default port, Steven Winikoff, 2018/01/18