One small checkpoint
diff --git a/client/client.cc b/client/client.cc
new file mode 100644
index 0000000..746de70
--- /dev/null
+++ b/client/client.cc
@@ -0,0 +1,81 @@
+/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil -*- */
+/*
+ * Copyright (c) 2012 University of California, Los Angeles
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation;
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ * Author: Alexander Afanasyev <alexander.afanasyev@ucla.edu>
+ * Zhenkai Zhu <zhenkai@cs.ucla.edu>
+ */
+
+#include <iostream>
+#include <boost/algorithm/string.hpp>
+#include <config.h>
+
+using namespace std;
+using namespace boost;
+
+void
+usage ()
+{
+ cerr << "Usage: chronoshare <cmd> [<options>]\n"
+ << "\n"
+ << " <cmd> is one of:\n"
+ << " version\n"
+ << " update <filename>\n"
+ << " delete <filename>\n"
+ << " move <filename> <filename>\n";
+ exit (1);
+}
+
+int
+main (int argc, char **argv)
+{
+ if (argc < 2)
+ {
+ usage ();
+ }
+
+ string cmd = argv[1];
+ algorithm::to_lower (cmd);
+
+ if (cmd == "version")
+ {
+ cout << "chronoshare version " << CHRONOSHARE_VERSION << endl;
+ exit (0);
+ }
+ else if (cmd == "update")
+ {
+ if (argc != 3)
+ {
+ usage ();
+ }
+ }
+ else if (cmd == "delete")
+ {
+ if (argc != 3)
+ {
+ usage ();
+ }
+ }
+ else if (cmd == "move")
+ {
+ if (argc != 4)
+ {
+ usage ();
+ }
+ }
+
+ return 0;
+}