FreeBSD Port: portmanager-0.4.1_9 - broken?

Alistair Sutton alistair.sutton at gmail.com
Fri May 4 01:30:22 PDT 2007


On 04/05/07, Robert Noland <rnoland at 2hip.net> wrote:
> On Thu, 2007-05-03 at 03:32 +0530, Avinash Duduskar wrote:
> > Hi,
> >
> >
> > I'm getting the following error when using portmanager:
> >
> > barge# /usr/local/bin/portmanager -ui
> > rParseCommandLine 0.4.1_9 error: /usr/ports/-ui is not a valid port
> > directory
> > rParseCommandLine 0.4.1_9 info:either you have used an invalid command line
> > switch as the first option or you are trying to update a non existent port
> > path, see man portmanager(1)
> > MGPMrCommandLine 0.4.1_9 error: rParseCommandLine returned errorCode 1
> >
>
> Ok, so I have reviewed the code and the command line parsing is a bit
> odd...  It separates options to commands and flags.  -ui is a flag,
> which is not entirely obvious.  Options which seem to be interpreted as
> commands are -sl, -slid, -s, -u, -v or category/port.  Other options are
> treated as flags -l, -ui, --resume, etc...
>
> So, "portmanager -u -ui" seems to do what you want.  I might break down
> and rework the parsing code eventually, as I have had other complaints
> about the way options are handled...

I remember when I added the -ui flag that I initially found it
confusing as to how the options were parsed.

I never did anything about it because I was only just learning things
at the time. :-)

Al
-- 
WWW: http://ajs.no-dns-yet.org.uk
GPG/PGP: http://ajs.no-dns-yet.org.uk/pubkey.gpg


More information about the freebsd-ports mailing list