kas: Also print config format version on --version
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
parent
2a618686f1
commit
ef0ef7c60c
@ -42,7 +42,7 @@ try:
|
|||||||
except ImportError:
|
except ImportError:
|
||||||
HAVE_COLORLOG = False
|
HAVE_COLORLOG = False
|
||||||
|
|
||||||
from . import __version__
|
from . import __version__, __file_version__, __compatible_file_version__
|
||||||
|
|
||||||
# Import kas plugins
|
# Import kas plugins
|
||||||
# Since they are added by decorators, they don't need to be called,
|
# Since they are added by decorators, they don't need to be called,
|
||||||
@ -105,8 +105,10 @@ def kas_get_argparser():
|
|||||||
parser = argparse.ArgumentParser(description='kas - setup tool for '
|
parser = argparse.ArgumentParser(description='kas - setup tool for '
|
||||||
'bitbake based project')
|
'bitbake based project')
|
||||||
|
|
||||||
parser.add_argument('--version', action='version',
|
verstr = '%(prog)s {} (configuration format version {}, ' \
|
||||||
version='%(prog)s ' + __version__)
|
'earliest compatible version {})'.format(__version__, __file_version__,
|
||||||
|
__compatible_file_version__)
|
||||||
|
parser.add_argument('--version', action='version', version=verstr)
|
||||||
|
|
||||||
parser.add_argument('-d', '--debug',
|
parser.add_argument('-d', '--debug',
|
||||||
action='store_true',
|
action='store_true',
|
||||||
|
Loading…
Reference in New Issue
Block a user