New function InvArg().
git-svn-id: svn://svn.cc65.org/cc65/trunk@4344 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
9971b645a5
commit
b7c8c651f6
2 changed files with 20 additions and 9 deletions
|
@ -6,10 +6,10 @@
|
|||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* (C) 2000 Ullrich von Bassewitz */
|
||||
/* Wacholderweg 14 */
|
||||
/* D-70597 Stuttgart */
|
||||
/* EMail: uz@musoftware.de */
|
||||
/* (C) 2000-2009, Ullrich von Bassewitz */
|
||||
/* Roemerstrasse 52 */
|
||||
/* D-70794 Filderstadt */
|
||||
/* EMail: uz@cc65.org */
|
||||
/* */
|
||||
/* */
|
||||
/* This software is provided 'as-is', without any expressed or implied */
|
||||
|
@ -236,6 +236,14 @@ void NeedArg (const char* Opt)
|
|||
|
||||
|
||||
|
||||
void InvArg (const char* Opt, const char* Arg)
|
||||
/* Print an error about an invalid option argument and exit. */
|
||||
{
|
||||
AbEnd ("Invalid argument for %s: `%s'", Opt, Arg);
|
||||
}
|
||||
|
||||
|
||||
|
||||
void InvDef (const char* Def)
|
||||
/* Print an error about an invalid definition and die */
|
||||
{
|
||||
|
|
|
@ -6,10 +6,10 @@
|
|||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* (C) 2000 Ullrich von Bassewitz */
|
||||
/* Wacholderweg 14 */
|
||||
/* D-70597 Stuttgart */
|
||||
/* EMail: uz@musoftware.de */
|
||||
/* (C) 2000-2009, Ullrich von Bassewitz */
|
||||
/* Roemerstrasse 52 */
|
||||
/* D-70794 Filderstadt */
|
||||
/* EMail: uz@cc65.org */
|
||||
/* */
|
||||
/* */
|
||||
/* This software is provided 'as-is', without any expressed or implied */
|
||||
|
@ -83,6 +83,9 @@ void UnknownOption (const char* Opt) attribute ((noreturn));
|
|||
void NeedArg (const char* Opt) attribute ((noreturn));
|
||||
/* Print an error about a missing option argument and exit. */
|
||||
|
||||
void InvArg (const char* Opt, const char* Arg) attribute ((noreturn));
|
||||
/* Print an error about an invalid option argument and exit. */
|
||||
|
||||
void InvDef (const char* Def) attribute ((noreturn));
|
||||
/* Print an error about an invalid definition and die */
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue