BaseTools-Source: Update displayed version information
Standardize the --version and --help text command-line options Updated tools to correctly display the Build number when using command-line option --version and exit successfully after termination. Ecc was also updated to print informational messages after the options are parsed. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Larry Hauch <larry.hauch@intel.com> Reviewed-by: Erik Bjorge <erik.c.bjorge@intel.com>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
Split a file into two pieces at the request offset.
|
||||
|
||||
Copyright (c) 1999 - 2015, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 1999 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials are licensed and made available
|
||||
under the terms and conditions of the BSD License which accompanies this
|
||||
distribution. The full text of the license may be found at
|
||||
@@ -34,8 +34,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
//
|
||||
// Utility version information
|
||||
//
|
||||
#define UTILITY_MAJOR_VERSION 0
|
||||
#define UTILITY_MINOR_VERSION 1
|
||||
#define UTILITY_MAJOR_VERSION 1
|
||||
#define UTILITY_MINOR_VERSION 0
|
||||
|
||||
void
|
||||
Version (
|
||||
@@ -57,10 +57,7 @@ Returns:
|
||||
|
||||
--*/
|
||||
{
|
||||
printf ("%s Version %d.%d %s\n", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION, __BUILD_VERSION);
|
||||
printf ("Copyright (c) 1999-2015 Intel Corporation. All rights reserved.\n");
|
||||
printf ("\n SplitFile creates two Binary files either in the same directory as the current working\n");
|
||||
printf (" directory or in the specified directory.\n");
|
||||
printf ("%s Version %d.%d Build %s\n", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION, __BUILD_VERSION);
|
||||
}
|
||||
|
||||
void
|
||||
@@ -83,6 +80,9 @@ Returns:
|
||||
--*/
|
||||
{
|
||||
Version();
|
||||
printf ("Copyright (c) 1999-2016 Intel Corporation. All rights reserved.\n");
|
||||
printf ("\n SplitFile creates two Binary files either in the same directory as the current working\n");
|
||||
printf (" directory or in the specified directory.\n");
|
||||
printf ("\nUsage: \n\
|
||||
Split\n\
|
||||
-f, --filename inputFile to split\n\
|
||||
|
Reference in New Issue
Block a user