Hi, The inputParser is great! I found apotential bug when using addSwtich. I will check it but in a while since now I am deep in development. If anybody can fix it before, better.
The code is parser = inputParser (); parser.FunctionName = "@task/alternant"; parser = addSwitch (parser,'Verbose'); parser = parse(parser,varargin{:}); verbose = parser.Results.Verbose The error -- error: Invalid call to @inputParser/addParamValue. Correct usage is: -- Function File: PARSER = addParamValue (PARSER, ARGNAME, DEFAULT) -- Function File: PARSER = PARSER.addParamValue (ARGNAME, DEFAULT) -- Function File: PARSER = addParamValue (PARSER, ARGNAME, DEFAULT, VALIDATOR) -- Function File: PARSER = PARSER.addParamValue (ARGNAME, DEFAULT, VALIDATOR) error: called from: error: /usr/local/share/octave/3.6.1/m/help/print_usage.m at line 87, column 5 error: /home/juanpi/octave/general-1.3.0/@inputParser/subsref.m at line 207, column 7 error: /home/juanpi/octave/general-1.3.0/@inputParser/subsref.m at line 42, column 11 error: /home/juanpi/octave/general-1.3.0/@inputParser/addSwitch.m at line 40, column 11 Cheers, JuanPi Carbajal ----- "The bad economist pursues a small present good, which will be followed by a great evil to come, while the true economist pursues a great good to come, at the risk of a small present evil." - Frédéric Bastiat ----- http://ailab.ifi.uzh.ch/carbajal/ ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Octave-dev mailing list Octave-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/octave-dev