summaryrefslogtreecommitdiff
path: root/components/bootstrap_hooks
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2013-11-04 07:16:28 +0100
committerDaniel Baumann <mail@daniel-baumann.ch>2013-11-04 07:16:28 +0100
commita5bd3715683690498cef82c2efc132a46de3f60e (patch)
tree08c285e586cd309f99de1d96c2e8e9e3e85cd24b /components/bootstrap_hooks
parent52122b28451ec441e037e4003dfecf5ecc21853c (diff)
downloadvyos-live-build-a5bd3715683690498cef82c2efc132a46de3f60e.tar.gz
vyos-live-build-a5bd3715683690498cef82c2efc132a46de3f60e.zip
Manually adding --version to argparse in python stub since python 3.3 dropped the version keyword.
Diffstat (limited to 'components/bootstrap_hooks')
-rwxr-xr-xcomponents/bootstrap_hooks4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/bootstrap_hooks b/components/bootstrap_hooks
index 2d6887d58..5162cdb5d 100755
--- a/components/bootstrap_hooks
+++ b/components/bootstrap_hooks
@@ -30,11 +30,11 @@ def main():
description = '''live-build contains the components to build a live system from a configuration directory.
The bootstrap_hooks command executes hooks after the bootstrap stage.''',
epilog = 'See \'man lb_bootstrap_hooks\' for more information.',
- version = 'live-build 4',
formatter_class = argparse.ArgumentDefaultsHelpFormatter
)
- arguments.add_argument('--verbose', help='set verbose option', action='store_true')
+ arguments.add_argument('--version', help='show program\'s version number and exit', action='version', version='live-build 4')
+ arguments.add_argument('--verbose', help='set verbose option', action='store_true')
args = arguments.parse_args()