Mercurial > hg > octave-terminal
changeset 10319:04a616348cec
slightly simplify optimget
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Fri, 12 Feb 2010 12:46:55 +0100 |
parents | f0ac2fa91733 |
children | 907d470e261b |
files | scripts/ChangeLog scripts/optimization/optimget.m |
diffstat | 2 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2010-02-12 Jaroslav Hajek <highegg@gmail.com> + + * optimization/optimget.m: Simplify. + 2010-02-11 Jaroslav Hajek <highegg@gmail.com> * miscellaneous/parseparams.m: Extend to allow direct parsing of
--- a/scripts/optimization/optimget.m +++ b/scripts/optimization/optimget.m @@ -33,9 +33,9 @@ endif opts = __all_opts__ (); - idx = lookup (opts, parname, "i"); + idx = lookup (opts, parname, "im"); - if (idx > 0 && strcmpi (parname, opts{idx})) + if (idx) parname = opts{idx}; else warning ("unrecognized option: %s", parname);