diff options
Diffstat (limited to 'scripts/wic')
-rwxr-xr-x | scripts/wic | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/scripts/wic b/scripts/wic index 524156ddc5..dcf1a5520e 100755 --- a/scripts/wic +++ b/scripts/wic | |||
@@ -79,28 +79,28 @@ def wic_create_subcommand(args, usage_str): | |||
79 | Command-line handling for image creation. The real work is done | 79 | Command-line handling for image creation. The real work is done |
80 | by image.engine.wic_create() | 80 | by image.engine.wic_create() |
81 | """ | 81 | """ |
82 | parser = optparse.OptionParser(usage = usage_str) | 82 | parser = optparse.OptionParser(usage=usage_str) |
83 | 83 | ||
84 | parser.add_option("-o", "--outdir", dest = "outdir", | 84 | parser.add_option("-o", "--outdir", dest="outdir", |
85 | action = "store", help = "name of directory to create image in") | 85 | action="store", help="name of directory to create image in") |
86 | parser.add_option("-i", "--infile", dest = "properties_file", | 86 | parser.add_option("-i", "--infile", dest="properties_file", |
87 | action = "store", help = "name of file containing the values for image properties as a JSON file") | 87 | action="store", help="name of file containing the values for image properties as a JSON file") |
88 | parser.add_option("-e", "--image-name", dest = "image_name", | 88 | parser.add_option("-e", "--image-name", dest="image_name", |
89 | action = "store", help = "name of the image to use the artifacts from e.g. core-image-sato") | 89 | action="store", help="name of the image to use the artifacts from e.g. core-image-sato") |
90 | parser.add_option("-r", "--rootfs-dir", dest = "rootfs_dir", | 90 | parser.add_option("-r", "--rootfs-dir", dest="rootfs_dir", |
91 | action = "callback", callback = callback_rootfs_dir, type = "string", | 91 | action="callback", callback=callback_rootfs_dir, type="string", |
92 | help = "path to the /rootfs dir to use as the .wks rootfs source") | 92 | help="path to the /rootfs dir to use as the .wks rootfs source") |
93 | parser.add_option("-b", "--bootimg-dir", dest = "bootimg_dir", | 93 | parser.add_option("-b", "--bootimg-dir", dest="bootimg_dir", |
94 | action = "store", help = "path to the dir containing the boot artifacts (e.g. /EFI or /syslinux dirs) to use as the .wks bootimg source") | 94 | action="store", help="path to the dir containing the boot artifacts (e.g. /EFI or /syslinux dirs) to use as the .wks bootimg source") |
95 | parser.add_option("-k", "--kernel-dir", dest = "kernel_dir", | 95 | parser.add_option("-k", "--kernel-dir", dest="kernel_dir", |
96 | action = "store", help = "path to the dir containing the kernel to use in the .wks bootimg") | 96 | action="store", help="path to the dir containing the kernel to use in the .wks bootimg") |
97 | parser.add_option("-n", "--native-sysroot", dest = "native_sysroot", | 97 | parser.add_option("-n", "--native-sysroot", dest="native_sysroot", |
98 | action = "store", help = "path to the native sysroot containing the tools to use to build the image") | 98 | action="store", help="path to the native sysroot containing the tools to use to build the image") |
99 | parser.add_option("-p", "--skip-build-check", dest = "build_check", | 99 | parser.add_option("-p", "--skip-build-check", dest="build_check", |
100 | action = "store_false", default = True, help = "skip the build check") | 100 | action="store_false", default=True, help="skip the build check") |
101 | parser.add_option("-f", "--build-rootfs", action="store_true", help = "build rootfs") | 101 | parser.add_option("-f", "--build-rootfs", action="store_true", help="build rootfs") |
102 | parser.add_option("-D", "--debug", dest = "debug", action = "store_true", | 102 | parser.add_option("-D", "--debug", dest="debug", action="store_true", |
103 | default = False, help = "output debug information") | 103 | default=False, help="output debug information") |
104 | 104 | ||
105 | (options, args) = parser.parse_args(args) | 105 | (options, args) = parser.parse_args(args) |
106 | 106 | ||
@@ -223,11 +223,11 @@ def wic_list_subcommand(args, usage_str): | |||
223 | Command-line handling for listing available image properties and | 223 | Command-line handling for listing available image properties and |
224 | values. The real work is done by image.engine.wic_list() | 224 | values. The real work is done by image.engine.wic_list() |
225 | """ | 225 | """ |
226 | parser = optparse.OptionParser(usage = usage_str) | 226 | parser = optparse.OptionParser(usage=usage_str) |
227 | 227 | ||
228 | parser.add_option("-o", "--outfile", action = "store", | 228 | parser.add_option("-o", "--outfile", action="store", |
229 | dest = "properties_file", | 229 | dest="properties_file", |
230 | help = "dump the possible values for image properties to a JSON file") | 230 | help="dump the possible values for image properties to a JSON file") |
231 | 231 | ||
232 | (options, args) = parser.parse_args(args) | 232 | (options, args) = parser.parse_args(args) |
233 | 233 | ||
@@ -276,12 +276,12 @@ subcommands = { | |||
276 | 276 | ||
277 | 277 | ||
278 | def start_logging(loglevel): | 278 | def start_logging(loglevel): |
279 | logging.basicConfig(filname = 'wic.log', filemode = 'w', level=loglevel) | 279 | logging.basicConfig(filname='wic.log', filemode='w', level=loglevel) |
280 | 280 | ||
281 | 281 | ||
282 | def main(): | 282 | def main(): |
283 | parser = optparse.OptionParser(version = "wic version %s" % __version__, | 283 | parser = optparse.OptionParser(version="wic version %s" % __version__, |
284 | usage = wic_usage) | 284 | usage=wic_usage) |
285 | 285 | ||
286 | parser.disable_interspersed_args() | 286 | parser.disable_interspersed_args() |
287 | 287 | ||