public static void main(String[] args) {



        if (args[0] == "-h" || args[0] == "--help") {

            AetherApp.printUsage();

        } else if (args.length < 3) {

            AetherApp.printUsage();

        } else {

            try {

                AetherApp myApp = new AetherApp(Integer.parseInt(args[0]));

                myApp.clientSocket = new Socket();
                InetSocketAddress endpoint = new InetSocketAddress(myApp.port);

                myApp.clientSocket.connect(endpoint);

                ObjectOutputStream oos = new ObjectOutputStream(myApp.clientSocket.getOutputStream());

                switch (args[1]) {

                    case "read":
                        String readReq = args[1] + ":" + args[2];
                        oos.writeObject(readReq);
//                        myApp.readFile(args[1]);
                        break;
                    case "write":
                        String writeReq = args[1] + ":" + args[2];
                        oos.writeObject(writeReq);
                        break;
                    default:
                        AetherApp.printUsage();
                        break;

                }

            } catch (SocketTimeoutException e) {

                // TODO: Print useful error message
                e.printStackTrace();

            } catch (SocketException e) {

                // TODO: Print useful error message
                e.printStackTrace();

            } catch (IOException e) {

                // TODO: Print useful error message
                e.printStackTrace();

            }

        }


    }