[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Monotone-devel] Issue 141 - Invariant when single letter option is comp
From: |
code |
Subject: |
[Monotone-devel] Issue 141 - Invariant when single letter option is completed to negated option variable (monotone) |
Date: |
Sat, 5 Feb 2011 00:16:57 GMT |
Hello,
A new issue has been created and assigned
to you:
141 - Invariant when single letter option is completed to negated option
variable
Project: monotone
Status: Accepted
Reported by: Thomas Keller
Labels:
Type:Incorrect Behavior
Priority:Medium
Milestone:1.0
Description:
Steps to reproduce the problem:
-------------------------------
$ mtn push -b foo
Expected result:
----------------
mtn: option error: unknown option 'b'
Actual results:
---------------
mtn: fatal: error: option.cc:462: I(!is_cancel)
Output of `mtn version --full`:
-------------------------------
0.99.1 and 0.99
The "b" of "-b" is tried to be completed and since push has no other options
that start with "b", it only matches
the global option "builtin-rcfile", which is the "cancel" version of
"no-builtin-rcfile". The option parser on the other hand does not expect a
single letter option to be completed to a negated option of a long option and
therefor hits the above invariant.
Possible solutions include removing the invariant altogether, completing only
on "--", not on "-" or completing only when at least two letters are given. The
second solution seems to make the most sense.
--
Issue: https://code.monotone.ca/p/monotone/issues/141/
- [Monotone-devel] Issue 141 - Invariant when single letter option is completed to negated option variable (monotone),
code <=