Added or modified utility version and usage display.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2159 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
ywang
2007-01-02 20:17:36 +00:00
parent a3ab2a47d9
commit f091efb3cb
12 changed files with 312 additions and 101 deletions

View File

@@ -34,7 +34,7 @@ Abstract:
#define UTILITY_MINOR_VERSION 1
void
ECVersion(
Version(
void
)
/*++
@@ -58,7 +58,7 @@ Returns:
}
void
ECUsage(
Usage(
void
)
/*++
@@ -77,8 +77,8 @@ Returns:
--*/
{
ECVersion();
printf ("\n Usage: %s Inputfile Outputfile\n", UTILITY_NAME);
Version();
printf ("\nUsage: %s Inputfile Outputfile\n", UTILITY_NAME);
}
@@ -122,23 +122,23 @@ Returns:
infile = outfile = NULL;
if (argc < 1) {
ECUsage();
Usage();
goto Done;
}
if ((strcmp(argv[1], "-h") == 0) || (strcmp(argv[1], "--help") == 0) ||
(strcmp(argv[1], "-?") == 0) || (strcmp(argv[1], "/?") == 0)) {
ECUsage();
Usage();
goto Done;
}
if ((strcmp(argv[1], "-V") == 0) || (strcmp(argv[1], "--version") == 0)) {
ECVersion();
Version();
goto Done;
}
if (argc != 3) {
ECUsage();
Usage();
goto Done;
}