#include <gflags/gflags.h>
#include <string>
#include <stdio.h>
#include <iostream>
using namespace std;
DEFINE_bool(used,true,"using");
DEFINE_string(name,"ALIYUN","server_name");
DEFINE_int32(port,8080,"listen port");
DEFINE_int32(id,100,"server_id");
int main(int argc,char**argv)
{
::google::ParseCommandLineFlags(&argc,&argv,true);
cout << "server_name:" << FLAGS_name <<endl;
cout << "port:" << FLAGS_port << endl;
cout << "id:" << FLAGS_id << endl;
cout << "used:" << FLAGS_used << endl;
return 0;
}