Help for RegistryOption confuses users

Bug #652336 reported by Vincent Ladeuil
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Medium
Unassigned

Bug Description

> > Neither the output of "bzr help resolve" nor the manual bundled with
> > Bazaar 2.2.1 say anything about ARG in --action=ARG. Can someone
> > please tell what can it be and how it is used?
> >
> > TIA
>
> - From the help message:
>
> action:
> --action=ARG How to resolve the conflict.
> --done Marks the conflict as resolved
> --take-other Resolve the conflict taking the merged version into
> account
> --take-this Resolve the conflict preserving the version in the
> working tree
>
> ARG can be "done" "take-other" or "take-this".

Thanks.

Do you mean that --action=take-other is equivalent to --take-other, and
similarly for others? I suggest to spell that out in the text, as
it's not immediately evident.

Btw, I've got to reading this part because "What's New" has this
sentence where it describes the new --take-this and --take-other
options:

  Just marking the conflict as resolved is still accessible via the
  --done default action.

The "default action" part led me to look for non-default actions. The
problem is that the help text for "resolve" does not even mention the
word "action" except in the part shown above, and doesn't say that
"--done" is the default. Rather confusing.

Revision history for this message
Vincent Ladeuil (vila) wrote :

The generated help should mention something like (--action=ARG or --ARG for short).

I.e:

 action:
 --action=ARG (or --ARG for short) How to resolve the conflict.
 --done Marks the conflict as resolved
 --take-other Resolve the conflict taking the merged version into
   account
 --take-this Resolve the conflict preserving the version in the
   working tree

Changed in bzr:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Eli Zaretskii (eliz) wrote :

I suggest something like this

action:
 --action=ARG (or --ARG for short) How to resolve the conflict.
 done Marks the conflict as resolved. This is the default, when no action is specified.
 take-other Resolve the conflict taking the merged version into account
 take-this Resolve the conflict preserving the version in the working tree

That is, use the form without the leading "--" in the description of ARG.

Revision history for this message
Martin Pool (mbp) wrote : Re: [Bug 652336] Re: Help for RegistryOption confuses users

On 1 October 2010 05:46, Eli Zaretskii <email address hidden> wrote:
> I suggest something like this
>
> action:
>  --action=ARG (or --ARG for short) How to resolve the conflict.
>  done Marks the conflict as resolved.  This is the default, when no action is specified.
>  take-other Resolve the conflict taking the merged version into account
>  take-this Resolve the conflict preserving the version in the working tree
>
> That is, use the form without the leading "--" in the description of
> ARG.

+1

I'm not sure that supporting --ARG is really worthwhile as a default
for registry options, and it may cause more confusion than it's worth.
 Perhaps for things that are commonly used we should eg. '-a done'.

--
Martin

Revision history for this message
Vincent Ladeuil (vila) wrote :

There is:

        :param value_switches: If true, each possible value is assigned its
            own switch. For example, instead of '--format knit',
            '--knit' can be used interchangeably.

in the RegistryOption constructor, so it's already optional. I'm not for making it the default but I think it should be used for resolve.

Jelmer Vernooij (jelmer)
tags: added: confusing-ui
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.