On Tue, Jun 22, 2021 at 03:57:08PM +0100, Jason McIntyre wrote:
> On Tue, Jun 22, 2021 at 02:19:32PM +0000, Klemens Nanni wrote:
> > On Tue, Jun 22, 2021 at 01:47:13PM +0100, Jason McIntyre wrote:
> > > after:
> > > 
> > > $ /usr/obj/usr.bin/tset/tset -Z
> > > tset: unknown option -- Z
> > > usage: tset [-cIQqrsVw] [-] [-e ch] [-i ch] [-k ch] [-m mapping] 
> > > [terminal]
> > 
> > OK kn
> > 
> 
> thanks. i noticed sth else though:
> 
> $ reset -Z
> reset: unknown option -- Z
> usage: tset [-cIQqrsVw] [-] [-e ch] [-i ch] [-k ch] [-m mapping] [terminal]
> 
> can we change it so that when you run tset as reset, the usage name
> matches? i thought it would do that already but see now it does not. it
> uses a weird _nc_progname argument in usage, which i do not understand
> at all.
Right, this is using /usr/src/lib/libcurses/tinfo/access.c
_nc_rootname() here.

> could it be easily fixed?
I see no reason to not use getprogname(3) in usage(), with that our
usage will always match the getopt(3) warning for `-Z'.

Reply via email to