Skip to contentSkip to conversation

master - Revert "cleanup: simplify option matching function"

lvm2-commits Petr Rockai 1 participant 1 message Apr 15, 2013 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

Hi,

Quoted 5 lines · Alasdair Kergon

This reverts commit 0396ade38b88431d959ce02fac689306a2c47786.

The original code also handled len==1, which the new code doesn't. Press <TAB> in the lvm shell to get a list of the possible flag completions for a single hyphen.

is there any chance of getting this in a form of a functional test? Requirements in a machine-checked form are very useful. Every time we have a regression like this (usually this happens because someone had no idea that something was supposed to work) we should have a test that checks for it, so we build up these, and avoid such mistakes in future.

Petr

Signature · 1 line
id' Ash = Ash; id' Dust = Dust; id' _ = undefined