changeset 10246:ef97c9c3b853 octave-forge

inputParser: add note about small bug that needs to be fixed
author carandraug
date Mon, 14 May 2012 07:35:40 +0000
parents 65496daaf367
children 5208f7d4f654
files main/general/inst/@inputParser/subsref.m
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/main/general/inst/@inputParser/subsref.m	Mon May 14 07:19:05 2012 +0000
+++ b/main/general/inst/@inputParser/subsref.m	Mon May 14 07:35:40 2012 +0000
@@ -44,6 +44,12 @@
     error ("invalid index for reference of class %s", class (inPar) );
   endswitch
 
+  ## TODO we should make inPar an object of the inputParser class again. At
+  ## least after running parse it becomes just a structure again. While that is
+  ## bad, at least allows for easy access to the Results and Unmatched fields
+  ## without extra coding.
+#  inPar = class (inPar, 'inputParser');
+
 endfunction
 
 function out = retrieve_results (inPar, idx)