summaryrefslogtreecommitdiff
path: root/cs/demo/IceBox/hello/Client.cs
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2007-09-04 13:32:59 -0230
committerDwayne Boone <dwayne@zeroc.com>2007-09-04 13:32:59 -0230
commit21636696805e2963b6869122ff7268004821eb19 (patch)
treeef158217555fba17c4d173b183dcf7c6607249b3 /cs/demo/IceBox/hello/Client.cs
parentAdded support for Java monotonic clock (diff)
downloadice-21636696805e2963b6869122ff7268004821eb19.tar.bz2
ice-21636696805e2963b6869122ff7268004821eb19.tar.xz
ice-21636696805e2963b6869122ff7268004821eb19.zip
bug 1831 - changed demos as well to warn about extra arguments
Diffstat (limited to 'cs/demo/IceBox/hello/Client.cs')
-rw-r--r--cs/demo/IceBox/hello/Client.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/cs/demo/IceBox/hello/Client.cs b/cs/demo/IceBox/hello/Client.cs
index 1da24eb192b..ce98cf97e69 100644
--- a/cs/demo/IceBox/hello/Client.cs
+++ b/cs/demo/IceBox/hello/Client.cs
@@ -33,6 +33,12 @@ public class Client : Ice.Application
public override int run(string[] args)
{
+ if(args.Length > 0)
+ {
+ Console.Error.WriteLine(appName() + ": too many arguments");
+ return 1;
+ }
+
try
{
communicator().getPluginManager().getPlugin("IceSSL");