summaryrefslogtreecommitdiff
path: root/BaseTools/Source/Python/UPT/UPT.py
diff options
context:
space:
mode:
authoredk2 dev <edk2.dev@edk2.org>2016-02-16 10:47:30 +0800
committerYonghong Zhu <yonghong.zhu@intel.com>2016-02-16 10:58:40 +0800
commitfbf2338143952da2c63241e51379504a15aa3ea9 (patch)
tree5a8aeabcde05048f21db1a59034e2e55c70e6a28 /BaseTools/Source/Python/UPT/UPT.py
parentd92eaabefbe0667bdd15c28c8e1fcd92a12fa97c (diff)
downloadedk2-platforms-fbf2338143952da2c63241e51379504a15aa3ea9.tar.xz
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>
Diffstat (limited to 'BaseTools/Source/Python/UPT/UPT.py')
-rw-r--r--BaseTools/Source/Python/UPT/UPT.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/BaseTools/Source/Python/UPT/UPT.py b/BaseTools/Source/Python/UPT/UPT.py
index 17decda5c3..b64cc2cf3b 100644
--- a/BaseTools/Source/Python/UPT/UPT.py
+++ b/BaseTools/Source/Python/UPT/UPT.py
@@ -2,7 +2,7 @@
#
# This file is the main entry for UPT
#
-# Copyright (c) 2011 - 2015, Intel Corporation. All rights reserved.<BR>
+# Copyright (c) 2011 - 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
@@ -99,7 +99,7 @@ def SetLogLevel(Opt):
def Main():
Logger.Initialize()
- Parser = OptionParser(version=(MSG_VERSION + ' ' + gBUILD_VERSION), description=MSG_DESCRIPTION,
+ Parser = OptionParser(version=(MSG_VERSION + ' Build ' + gBUILD_VERSION), description=MSG_DESCRIPTION,
prog="UPT.exe", usage=MSG_USAGE)
Parser.add_option("-d", "--debug", action="store", type="int", dest="debug_level", help=ST.HLP_PRINT_DEBUG_INFO)