From 2ee9a90417e4eecd3b50eaa5733c41eefffbe3bf Mon Sep 17 00:00:00 2001 From: Ondrej Martine Date: Fri, 30 Apr 2010 15:18:02 +0000 Subject: [PATCH] * use the standard getopt() to parse command-line options git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1877 8eb893ce-cfd4-0310-b710-fb5ebe64c474 --- core/sems.cpp | 58 +++++++++++++++++++++++---------------------------- 1 file changed, 26 insertions(+), 32 deletions(-) diff --git a/core/sems.cpp b/core/sems.cpp index cc8cfdb3..21a17169 100644 --- a/core/sems.cpp +++ b/core/sems.cpp @@ -105,36 +105,34 @@ static void print_usage(bool short_=false) } /* Note: The function should not use log because it is called before logging is initialized. */ -static bool parse_args(int argc, char* argv[], - const string& flags, const string& options, - std::map& args) +static bool parse_args(int argc, char* argv[], std::map& args) { - for(int i=1; i