diff -r 7f20ec638bc2 -r da8eb8f4ea41 demo/arg_parser_demo.cc --- a/demo/arg_parser_demo.cc Wed Mar 07 13:32:12 2007 +0000 +++ b/demo/arg_parser_demo.cc Mon Mar 12 13:26:56 2007 +0000 @@ -27,15 +27,15 @@ double d; bool b,sil; bool g1,g2,g3; - ap.option("n", "an integer input", i, true) - .option("val", "a double input", d) + ap.refOption("n", "an integer input", i, true) + .refOption("val", "a double input", d) .synonym("vals","val") - .option("name", "a string input", s) - .option("f", "a switch", b) - .option("nohelp", "", sil) - .option("gra","Choise A",g1) - .option("grb","Choise B",g2) - .option("grc","Choise C",g3) + .refOption("name", "a string input", s) + .refOption("f", "a switch", b) + .refOption("nohelp", "", sil) + .refOption("gra","Choise A",g1) + .refOption("grb","Choise B",g2) + .refOption("grc","Choise C",g3) .optionGroup("gr","gra") .optionGroup("gr","grb") .optionGroup("gr","grc")