]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/C/GenBootSector/GenBootSector.c
Sync BaseTool trunk (version r2599) into EDKII BaseTools.
[mirror_edk2.git] / BaseTools / Source / C / GenBootSector / GenBootSector.c
index 169d81e031d695c893c68921b9251ad0e7bd55e3..f102ee139af4d1004ecedb479c375e93d061dd35 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 \r
-Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2013, 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
@@ -542,8 +542,7 @@ Returns:
 \r
 --*/\r
 {\r
-  printf ("%s v%d.%d %s -Utility to retrieve and update the boot sector or MBR.\n", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION, __BUILD_VERSION);\r
-  printf ("Copyright (c) 2009 - 2010 Intel Corporation. All rights reserved.\n");\r
+  printf ("%s Version %d.%d Build%s\n", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION, __BUILD_VERSION);\r
 }\r
 \r
 VOID\r
@@ -551,18 +550,27 @@ PrintUsage (
   void\r
   )\r
 {\r
-  Version();\r
-  printf ("\nUsage: \n\\r
-   GenBootSector\n\\r
-     [-l, --list list disks]\n\\r
-     [-i, --input Filename]\n\\r
-     [-o, --output Filename]\n\\r
-     [-m, --mbr process the MBR also]\n\\r
-     [-v, --verbose]\n\\r
-     [--version]\n\\r
-     [-q, --quiet disable all messages except fatal errors]\n\\r
-     [-d, --debug[#]\n\\r
-     [-h, --help]\n");\r
+  printf ("Usage: GenBootSector [options] --cfg-file CFG_FILE\n\n\\r
+Copyright (c) 2009 - 2013, Intel Corporation.  All rights reserved.\n\n\\r
+  Utility to retrieve and update the boot sector or MBR.\n\n\\r
+optional arguments:\n\\r
+  -h, --help            Show this help message and exit\n\\r
+  --version             Show program's version number and exit\n\\r
+  -d [DEBUG], --debug [DEBUG]\n\\r
+                        Output DEBUG statements, where DEBUG_LEVEL is 0 (min)\n\\r
+                        - 9 (max)\n\\r
+  -v, --verbose         Print informational statements\n\\r
+  -q, --quiet           Returns the exit code, error messages will be\n\\r
+                        displayed\n\\r
+  -s, --silent          Returns only the exit code; informational and error\n\\r
+                        messages are not displayed\n\\r
+  -l, --list            List disk drives\n\\r
+  -i INPUT_FILENAME, --input INPUT_FILENAME\n\\r
+                        Input file name\n\\r
+  -o OUTPUT_FILENAME, --output OUTPUT_FILENAME\n\\r
+                        Output file name\n\\r
+  -m, --mbr             Also process the MBR\n\\r
+  --sfo                 Reserved for future use\n");\r
 \r
 }\r
 \r