port accepts option prefixes for less typing (was: Re: [66837] trunk/base/src/port/port.tcl)

Rainer Müller raimue at macports.org
Fri Apr 23 04:03:06 PDT 2010


On 2010-04-23 12:54 , raimue at macports.org wrote:
> Revision: 66837
>           http://trac.macports.org/changeset/66837
> Author:   raimue at macports.org
> Date:     2010-04-23 03:54:14 -0700 (Fri, 23 Apr 2010)
> Log Message:
> -----------
> port: Accept prefixes of action options if they are unambiguous

This means less typing:

$ port info --revision vim
revision: 1
$ port info --rev vim
revision: 1
$ port info --r vim
Error: info --r is ambiguous:
  --replaced_by
  --revision

Note this works for options only, not for actions as they are usually
short enough already.

Would it be okay to move 'port rdeps' to 'port deps --recursive' as now
you won't have to type the full string but 'port deps --r' only? Less
typing was a reason for this name IIRC. And the same for 'dependents'
and 'rdependents'. I would prefer not to have first-level commands for
very similar actions.

Rainer


More information about the macports-dev mailing list