/*************************************************************************** * * Copyright (c) 2009 Baidu.com, Inc. All Rights Reserved * $Id: test_cfg3.cpp,v 1.2 2009/03/23 03:14:53 yingxiang Exp $ * **************************************************************************/ /** * @file test_cfg3.cpp * @author xiaowei(com@baidu.com) * @date 2009/03/09 16:10:23 * @version $Revision: 1.2 $ * @brief * **/ #include void version() { printf("faint-------------\n"); } int main(int argc, char **argv) { comcfg::Flag flag; flag.set_version(version); flag.set_help(version); flag.init(argc, argv); flag.loadconfig(); return 0; } /* vim: set ts=4 sw=4 sts=4 tw=100 */