 void usage(const std::string& name, const std::vector<parameter_type>& parameters)
 {
   std::cout << "Usage: " << name << " [OPTIONS]" << std::endl;
-	for (const parameter_type& parameter : parameters) {
+  for (const parameter_type& parameter : parameters) {
     std::cout << "  -" << parameter.short_flag << ",--" << parameter.long_flag;
     std::cout << "  : " << parameter.description << std::endl;
     if (parameter.default_value.empty()) {


std::vector<char> readFile(const std::string& filename)
{
  std::vector<char> buffer(4096);
  std::vector<char> host_data;

  std::ifstream fin(filename, std::ifstream::binary);
  fin.exceptions(std::ifstream::failbit | std::ifstream::badbit);

  size_t num;
  do {
    num = fin.readsome(buffer.data(), buffer.size());
    host_data.insert(host_data.end(), buffer.begin(), buffer.begin() + num);
  } while (num > 0);

  return host_data;
}

};

struct parameter_type {
  std::string short_flag;
  std::string long_flag;
  std::string description;
  std::string default_value;
