summaryrefslogtreecommitdiff
path: root/Tools/CCode
diff options
context:
space:
mode:
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2007-01-08 03:44:30 +0000
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>2007-01-08 03:44:30 +0000
commit0ce0d9ae9521f81d771ae476de0fea893f97f8a1 (patch)
tree3eb1755ae929ec084f58c5071dfc6539aa98550e /Tools/CCode
parent19231e0ecada1f38b43ed04edcb77b4e1b848099 (diff)
downloadedk2-platforms-0ce0d9ae9521f81d771ae476de0fea893f97f8a1.tar.xz
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
Diffstat (limited to 'Tools/CCode')
-rw-r--r--Tools/CCode/Source/GenDepex/GenDepex.c25
1 files changed, 9 insertions, 16 deletions
diff --git a/Tools/CCode/Source/GenDepex/GenDepex.c b/Tools/CCode/Source/GenDepex/GenDepex.c
index e8481b518b..e28be72acc 100644
--- a/Tools/CCode/Source/GenDepex/GenDepex.c
+++ b/Tools/CCode/Source/GenDepex/GenDepex.c
@@ -839,7 +839,6 @@ Returns:
EFI_ABORTED Unable to open/create a file or a misc error.
--*/
-// TODO: ] - add argument and description to function comment
{
FILE *OutFile;
FILE *InFile;
@@ -856,22 +855,16 @@ Returns:
Output_Flag = FALSE;
Pad_Flag = FALSE;
- if (argc < 1) {
- Usage();
- return -1;
- }
-
- if ((strcmp(argv[1], "-h") == 0) || (strcmp(argv[1], "--help") == 0) ||
- (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;
+ //
+ // Output the calling arguments
+ //
+ printf ("\n\n");
+ for (Index = 0; Index < argc; Index++) {
+ printf ("%s ", argv[Index]);
}
-
+
+ printf ("\n\n");
+
if (argc < 5) {
printf ("Not enough arguments\n");
Usage();