diff scripts/miscellaneous/run.m @ 7125:f084ba47812b

[project @ 2007-11-08 02:29:23 by jwe]
author jwe
date Thu, 08 Nov 2007 02:29:24 +0000
parents a1dbe9d80eee
children 4a853a9138e7
line wrap: on
line diff
--- a/scripts/miscellaneous/run.m	Thu Nov 08 01:09:44 2007 +0000
+++ b/scripts/miscellaneous/run.m	Thu Nov 08 02:29:24 2007 +0000
@@ -29,6 +29,11 @@
 ## PKG_ADD: mark_as_command run
 
 function run (s)
+
+  if (nargin != 1)
+    print_usage ();
+  endif
+
   [d, f, ext] = fileparts (s);
   if (! isempty (d))
     if (exist (d, "dir"))