From owner-freebsd-ports@FreeBSD.ORG Fri May 4 00:26:10 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 DA98816A400 for ; Fri, 4 May 2007 00:26:10 +0000 (UTC) (envelope-from rnoland@2hip.net) Received: from gizmo.2hip.net (gizmo.2hip.net [64.74.207.195]) by mx1.freebsd.org (Postfix) with ESMTP id A1CA113C448 for ; Fri, 4 May 2007 00:26:08 +0000 (UTC) (envelope-from rnoland@2hip.net) Received: from [63.251.67.21] (rnoland-ibm.acs.internap.com [63.251.67.21]) (authenticated bits=0) by gizmo.2hip.net (8.13.8/8.13.8) with ESMTP id l440Q7LT012531 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Thu, 3 May 2007 20:26:07 -0400 (EDT) (envelope-from rnoland@2hip.net) From: Robert Noland To: Avinash Duduskar In-Reply-To: <46390a86.5ca00218.5c93.3d87@mx.google.com> References: <46390a86.5ca00218.5c93.3d87@mx.google.com> Content-Type: text/plain; charset=iso-8859-7 Date: Thu, 03 May 2007 20:26:01 -0400 Message-Id: <1178238361.60150.15.camel@rnoland-ibm.acs.internap.com> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.1.8 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on gizmo.2hip.net Cc: ports@FreeBSD.org 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 00:26:10 -0000 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... robert.