When an argument to scilab* is unknown, display which arguments caused the issue 22/12322/4
Sylvestre Ledru [Thu, 22 Aug 2013 07:37:13 +0000 (09:37 +0200)]
Change-Id: Ib68aafa956bd8cf0be96c95819c927f0271515cf

scilab/bin/scilab

index 855c98a..d1f44a1 100755 (executable)
@@ -1064,7 +1064,8 @@ if test "$rest" = "yes"; then
                 ;;
             *)
                 foundUnknownArg=1
-          # Do nothing. Gives unknown args to Scilab binaries if -a is provided
+                wrongArg=$sciarg
+                # Do nothing. Gives unknown args to Scilab binaries if -args is provided
                 ;;
         esac
     done
@@ -1073,6 +1074,8 @@ if test "$rest" = "yes"; then
 # If the argument -a is not provided (extraarg) and we found unknown args
 # fail and provide help
     if test -z "$extraarg" -a -n "$foundUnknownArg"; then
+        echo "Unknown argument: $wrongArg"
+        echo ""
         do_help
     fi