mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-27 23:54:02 +02:00
Fix one minor bug for GenDepex tool. When no input parameter, GenDepex tool should output help info.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2189 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
19231e0eca
commit
0ce0d9ae95
@ -839,7 +839,6 @@ Returns:
|
|||||||
EFI_ABORTED Unable to open/create a file or a misc error.
|
EFI_ABORTED Unable to open/create a file or a misc error.
|
||||||
|
|
||||||
--*/
|
--*/
|
||||||
// TODO: ] - add argument and description to function comment
|
|
||||||
{
|
{
|
||||||
FILE *OutFile;
|
FILE *OutFile;
|
||||||
FILE *InFile;
|
FILE *InFile;
|
||||||
@ -856,22 +855,16 @@ Returns:
|
|||||||
Output_Flag = FALSE;
|
Output_Flag = FALSE;
|
||||||
Pad_Flag = FALSE;
|
Pad_Flag = FALSE;
|
||||||
|
|
||||||
if (argc < 1) {
|
//
|
||||||
Usage();
|
// Output the calling arguments
|
||||||
return -1;
|
//
|
||||||
|
printf ("\n\n");
|
||||||
|
for (Index = 0; Index < argc; Index++) {
|
||||||
|
printf ("%s ", argv[Index]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((strcmp(argv[1], "-h") == 0) || (strcmp(argv[1], "--help") == 0) ||
|
printf ("\n\n");
|
||||||
(strcmp(argv[1], "-?") == 0) || (strcmp(argv[1], "/?") == 0)) {
|
|
||||||
Usage();
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ((strcmp(argv[1], "-V") == 0) || (strcmp(argv[1], "--version") == 0)) {
|
|
||||||
Version();
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (argc < 5) {
|
if (argc < 5) {
|
||||||
printf ("Not enough arguments\n");
|
printf ("Not enough arguments\n");
|
||||||
Usage();
|
Usage();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user