summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2013-11-05 12:13:30 +0100
committerDaniel Baumann <mail@daniel-baumann.ch>2013-11-05 12:20:17 +0100
commit8245c7d0fc176f110859f4ea544d09026c6c8ccd (patch)
tree8be71bfb399639ebb8513b80e2fff2418cf4d4dd /components
parent3a3a4bbfc9da8df7e46043b14ff11725a7f395ba (diff)
downloadvyos-live-build-8245c7d0fc176f110859f4ea544d09026c6c8ccd.tar.gz
vyos-live-build-8245c7d0fc176f110859f4ea544d09026c6c8ccd.zip
Adding --distribution to lb-init.
Diffstat (limited to 'components')
-rwxr-xr-xcomponents/init12
1 files changed, 8 insertions, 4 deletions
diff --git a/components/init b/components/init
index c1dba21dc..e0c8458d1 100755
--- a/components/init
+++ b/components/init
@@ -28,21 +28,25 @@ def main():
prog = 'lb init',
usage = '%(prog)s [arguments]',
description = '''live-build contains the components to build a live system from a configuration directory.
- The init command creates an empty configuration tree or reinitialize an existing one.''',
+ The init command creates an empty configuration directory or reinitialize an existing one.''',
epilog = 'See \'man lb-init\' for more information.',
formatter_class = argparse.ArgumentDefaultsHelpFormatter
)
- 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')
+ 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')
- arguments.add_argument('--project', help='set project defaults')
+ arguments.add_argument('--distribution', help='set default distribution')
+ arguments.add_argument('--project', help='set project defaults')
args = arguments.parse_args()
# --verbose
verbose = args.verbose
+ # --distribution
+ distribution = args.distribution
+
# --project
project = args.project