Date: Mon, 24 Aug 2015 16:21:53 +0200 From: Willem Jan Withagen <wjw@digiware.nl> To: Baptiste Daroussin <bapt@FreeBSD.org> Cc: "stable@freebsd.org" <stable@freebsd.org> Subject: Re: regression from previous version of pw Message-ID: <55DB2881.2030202@digiware.nl> In-Reply-To: <20150824141644.GI93486@ivaldir.etoilebsd.net> References: <55DB2100.4070304@digiware.nl> <20150824140133.GG93486@ivaldir.etoilebsd.net> <55DB2521.5030502@digiware.nl> <20150824141644.GI93486@ivaldir.etoilebsd.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On 24-8-2015 16:16, Baptiste Daroussin wrote: > On Mon, Aug 24, 2015 at 04:07:29PM +0200, Willem Jan Withagen wrote: >> On 24-8-2015 16:01, Baptiste Daroussin wrote: >>> On Mon, Aug 24, 2015 at 03:49:52PM +0200, Willem Jan Withagen wrote: >>>> Hi, >>>> >>>> In the previous version before Bapt upgraded pw(8) I was allowed to do >>>> pw useradd -V /etc >>>> >>>> Even though the manual page instructed otherwise. >>>> >>>> The new version sticks to the manual page and generates: >>>> pw: illegal option -- V >>>> >>>> I'm going to change the scripts, but perhaps others will be bitten too. >>>> Up to Bapt to decide what to do with this. >>> >>> The code has been changed to respect what the manual and the help output was >>> showing: -V should be passed before the subcommand >> >> You just changed that now? Or my version is lagging behind? >> Text is much more clear than the 'illegal option' espacially now there >> is also the -R stuff. So it made me wonder. We the text now, was enough to make me look at the man page. So it depends on how much error info you give with other problems. I'm all for more informational error messages. I don't think the Unixs are (used to be) in that mode. > I changed that when bringing in the -R stuff so long ago. Illegal option is made > by getopt(3) directly but I can make it nicer and show a message that explains. my code had services running php53. :( So it is old... So that is probably why I did not get bitten earlier. Ciao, --WjW
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55DB2881.2030202>