static void Main(string[] args) { // initialize the SDK by setting the log.level=DEBUG Dictionary <String, String> config = new Dictionary <String, String>(); config.Add("log.level", "7"); if (!AquaClientRef.initSDK(config)) { Console.WriteLine("failed to init aquaclient sdk"); return; } // dispatch the sub-commands do { if (args.Length <= 1) { break; // no sub command specified } if (args[0].Equals("get")) { if (args.Length < 3) { Console.WriteLine("get: please specify the source and destination file names"); break; } Console.WriteLine("copy file " + args[1] + " to " + args[2]); get(args[1], args[2]); break; } if (args[0].Equals("put")) { if (args.Length < 3) { Console.WriteLine("put: please specify the source and destination file names"); break; } Console.WriteLine("copy file " + args[1] + " to " + args[2]); put(args[1], args[2]); break; } } while (false); // uninitialize the SDK Console.WriteLine("test finished"); AquaClientRef.uninitSDK(); Console.WriteLine("sdk uninitialized"); }