Opened 7 years ago

Closed 7 years ago

#56434 closed defect (fixed)

Inconsistent flag names --nosync and --no-mirror

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: raimue (Rainer Müller)
Priority: Normal Milestone: MacPorts 2.5.0
Component: base Version: 2.4.99
Keywords: Cc: raimue (Rainer Müller)
Port:

Description

sudo port selfupdate accepts a flag --nosync.

sudo port fetch accepts a flag --no-mirrors.

It is confusing that one of the flags uses a hyphen (-) between words and the other does not.

Since --no-mirrors is new for MacPorts 2.5.0 which was not been released yet, we could easily change it to --nomirrors before release without introducing confusion for most users.

Or, if we like the hyphenated version better, we could change the selfupdate flag to --no-sync, while keeping --nosync for backward compatibility. I don't see any other multiword options that aren't hyphenated, so this is probably the alternative I'd go with.

Change History (3)

comment:1 Changed 7 years ago by mojca (Mojca Miklavec)

Personally I prefer the version with hyphen.

comment:2 Changed 7 years ago by raimue (Rainer Müller)

We also have port install --no-rev-upgrade and port rdeps --no-build. The version with hyphen seems to be preferred already, so we should change this to port selfupdate --no-sync and deprecate the old --nosync with a warning.

comment:3 Changed 7 years ago by raimue (Rainer Müller)

Owner: set to raimue
Resolution: fixed
Status: newclosed

In ce6d4817b3ce8cb4beeb26ac0591d5770a288798/macports-base (master):

Deprecate port selfupdate --nosync, add --no-sync

Closes: #56434

Note: See TracTickets for help on using tickets.