Diff of /src/__gfweight__.cc [f62e8c] .. [b92126] Maximize Restore

  Switch to side-by-side view

--- a/src/__gfweight__.cc
+++ b/src/__gfweight__.cc
@@ -62,7 +62,7 @@
 
   if (args.length () != 1)
     {
-      error ("__gfweight__: wrong number of arguments");
+      print_usage ();
       return octave_value ();
     }
 
@@ -83,6 +83,12 @@
 }
 
 /*
+%% Test input validation
+%!error __gfweight__ ()
+%!error __gfweight__ (1, 2)
+*/
+
+/*
 ;;; Local Variables: ***
 ;;; mode: C++ ***
 ;;; End: ***