[MacPorts] #44507: port select usage string issue(s)

MacPorts noreply at macports.org
Thu Jul 31 02:27:14 PDT 2014


#44507: port select usage string issue(s)
-----------------------------+--------------------------------
 Reporter:  ora.et.labora@…  |      Owner:  macports-tickets@…
     Type:  defect           |     Status:  new
 Priority:  Low              |  Milestone:
Component:  base             |    Version:  2.3.1
 Keywords:                   |       Port:
-----------------------------+--------------------------------
 The usage string of `port select` is not entirely correct and thus
 confusing:

 {{{
 $ port select
 Error: port select [--list|--set|--show|--summary] <group> [<version>]

 # ok, so a *group* argument is mandatory, right?

 $ port select --summary mysql
 Warning: The 'summary' command does not expect any arguments. Extra
 arguments will be ignored.
 [..]
 }}}

 Obviously not. Thus, the usage string must be:
 {{{
 $ port select
 Error: usage:
 port select [--list|--show] <group>
 port select --set <group> <version>
 port select --summary
 }}}

 My personnel taste on this is to have one __action__ per task, i.e.

 {{{
 $ port select-set mysql mysql56
 $ port select-list mysql
 $ port select-summary
 $ port select-show mysql
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/44507>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list