Added a module to manage attribute/value pairs.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5575 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz
2012-03-04 20:17:34 +00:00
parent 4f61106043
commit 594e446ac5
5 changed files with 309 additions and 0 deletions

View File

@@ -84,6 +84,13 @@ static void OptHelp (const char* Opt attribute ((unused)),
static void OptRead (const char* Opt attribute ((unused)), const char* Arg)
/* Read an input file */
{
}
static void OptVerbose (const char* Opt attribute ((unused)),
const char* Arg attribute ((unused)))
/* Increase versbosity */
@@ -110,6 +117,7 @@ int main (int argc, char* argv [])
/* Program long options */
static const LongOpt OptTab[] = {
{ "--help", 0, OptHelp },
{ "--read", 1, OptRead },
{ "--verbose", 0, OptVerbose },
{ "--version", 0, OptVersion },
};
@@ -142,6 +150,10 @@ int main (int argc, char* argv [])
OptHelp (Arg, 0);
break;
case 'r':
OptRead (Arg, GetArg (&I, 2));
break;
case 'v':
OptVerbose (Arg, 0);
break;