From owner-freebsd-ports@FreeBSD.ORG Fri May 4 08:30:22 2007 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7BCD016A402 for ; Fri, 4 May 2007 08:30:22 +0000 (UTC) (envelope-from alistair.sutton@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.179]) by mx1.freebsd.org (Postfix) with ESMTP id 3AFF313C46E for ; Fri, 4 May 2007 08:30:22 +0000 (UTC) (envelope-from alistair.sutton@gmail.com) Received: by py-out-1112.google.com with SMTP id f31so603626pyh for ; Fri, 04 May 2007 01:30:21 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=kvdejubjzdSBwYIVUdardqtWdJRtliZ6u14rkebUmXt70NSItHkC6px13UqcEgAfZl98yhoIRSEa88VZE5WXNmqo3NxBB7XHSjaYAM86UguqeBctQknjLDzjGjFsxDW9m2Mrax1B4S6QNoi+BcvGLlUiO3tV1oq/xWrQCwBHs6E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=pMkxw2hyzDHgEW7TSKIjPgGuuR5zNRqYEb4+nBOrVfZfEXiHi3DQaFyeYfglTDBZFVnc516ZtxXhbWliw5+FZJjGg2PTqdHmZtvHIRIcODFHzuTyV9w81zXVSjoHCi2prlUTesN5odsI59iH3HtRG++XPFC1VYHIWwWCn/ubSUg= Received: by 10.35.93.1 with SMTP id v1mr4853462pyl.1178265684074; Fri, 04 May 2007 01:01:24 -0700 (PDT) Received: by 10.35.95.17 with HTTP; Fri, 4 May 2007 01:01:24 -0700 (PDT) Message-ID: Date: Fri, 4 May 2007 09:01:24 +0100 From: "Alistair Sutton" To: "Robert Noland" In-Reply-To: <1178238361.60150.15.camel@rnoland-ibm.acs.internap.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <46390a86.5ca00218.5c93.3d87@mx.google.com> <1178238361.60150.15.camel@rnoland-ibm.acs.internap.com> Cc: ports@freebsd.org, Avinash Duduskar Subject: Re: FreeBSD Port: portmanager-0.4.1_9 - broken? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 May 2007 08:30:22 -0000 On 04/05/07, Robert Noland 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