]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Application/ShellCTestApp/ShellCTestApp.c
ShellPkg: Ease the shell's MAN file Title Header syntax requirements.
[mirror_edk2.git] / ShellPkg / Application / ShellCTestApp / ShellCTestApp.c
index 0a057742d9ba34292f8aabe736d7a6d0c0833ef3..08c830cfb79a07e0f97b9142f41b146b343be59d 100644 (file)
@@ -2,7 +2,7 @@
   This is a test application that demonstrates how to use the C-style entry point\r
   for a shell application.\r
 \r
-  Copyright (c) 2009-2010, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2015, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -25,8 +25,8 @@
   The ShellCEntryLib library instance wrappers the actual UEFI application\r
   entry point and calls this ShellAppMain function.\r
 \r
-  @param  ImageHandle  The image handle of the UEFI Application.\r
-  @param  SystemTable  A pointer to the EFI System Table.\r
+  @param[in] Argc     The number of items in Argv.\r
+  @param[in] Argv     Array of pointers to strings.\r
 \r
   @retval  0               The application exited normally.\r
   @retval  Other           An error occurred.\r
@@ -40,10 +40,11 @@ ShellAppMain (
   )\r
 {\r
   UINTN  Index;\r
-\r
-  Print(L"ShellCTestApp.c:ShellAppMain called with %d parameters\n", Argc);\r
-  for (Index = 0; Index < Argc; Index++) {\r
-    Print(L"Argv[%d]: %s\n", Index, Argv[Index]);\r
+  if (Argc == 1) {\r
+    Print (L"Argv[1] = NULL\n");\r
+  }\r
+  for (Index = 1; Index < Argc; Index++) {\r
+    Print(L"Argv[%d]: \"%s\"\n", Index, Argv[Index]);\r
   }\r
 \r
   return 0;\r