]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/CCode/Source/GenDepex/GenDepex.c
Fix one minor bug for GenDepex tool. When no input parameter, GenDepex tool should...
[mirror_edk2.git] / Tools / CCode / Source / GenDepex / GenDepex.c
index e8481b518b5616e8b03f0cac15789569dab684d1..e28be72acc3df18deb7832fd176e0a85288ecad8 100644 (file)
@@ -839,7 +839,6 @@ Returns:
   EFI_ABORTED             Unable to open/create a file or a misc error.\r
 \r
 --*/\r
-// TODO:    ] - add argument and description to function comment\r
 {\r
   FILE    *OutFile;\r
   FILE    *InFile;\r
@@ -856,22 +855,16 @@ Returns:
   Output_Flag = FALSE;\r
   Pad_Flag    = FALSE;\r
 \r
-  if (argc < 1) {\r
-    Usage();\r
-    return -1;\r
-  }\r
-  \r
-  if ((strcmp(argv[1], "-h") == 0) || (strcmp(argv[1], "--help") == 0) ||\r
-      (strcmp(argv[1], "-?") == 0) || (strcmp(argv[1], "/?") == 0)) {\r
-    Usage();\r
-    return 0;\r
-  }\r
-  \r
-  if ((strcmp(argv[1], "-V") == 0) || (strcmp(argv[1], "--version") == 0)) {\r
-    Version();\r
-    return 0;\r
+  //\r
+  //  Output the calling arguments\r
+  //\r
+  printf ("\n\n");\r
+  for (Index = 0; Index < argc; Index++) {\r
+    printf ("%s ", argv[Index]);\r
   }\r
-  \r
+\r
+  printf ("\n\n");\r
+\r
   if (argc < 5) {\r
     printf ("Not enough arguments\n");\r
     Usage();\r