typo: fix usage message typo error
authorZhang Qiang <qiang.z.zhang@intel.com>
Thu, 10 Nov 2011 08:52:11 +0000 (16:52 +0800)
committerZhang Qiang <qiang.z.zhang@intel.com>
Thu, 10 Nov 2011 08:52:11 +0000 (16:52 +0800)
README.rst
mic/creator.py
mic/imager/baseimager.py
tools/mic

index cf90742..c5cfc31 100644 (file)
@@ -221,7 +221,7 @@ by all image types, as the following ::
                       Output directory
   -A ARCH, --arch=ARCH
                       Specify repo architecture
-  --release=RID       Generate a release of RID with all neccessary
+  --release=RID       Generate a release of RID with all necessary
                       files,when @BUILD_ID@ is contained in kickstart file,
                       it will be replaced by RID
   --record-pkgs=RECORD_PKGS
index 2a01886..4e38033 100644 (file)
@@ -24,7 +24,7 @@ from mic.utils import cmdln, errors, rpmmisc
 class Creator(cmdln.Cmdln):
     """${name}: create an image
 
-    usage:
+    Usage:
         ${name} SUBCOMMAND [OPTS] [ARGS..]
 
     ${command_list}
@@ -61,7 +61,7 @@ class Creator(cmdln.Cmdln):
         optparser.add_option('-k', '--cachedir', type='string', action='store', dest='cachedir', default=None, help='Cache directory to store the downloaded')
         optparser.add_option('-o', '--outdir', type='string', action='store', dest='outdir', default=None, help='Output directory')
         optparser.add_option('-A', '--arch', type='string', dest='arch', default=None, help='Specify repo architecture')
-        optparser.add_option('', '--release', type='string', dest='release', default=None, metavar='RID', help='Generate a release of RID with all neccessary files,when @BUILD_ID@ is contained in kickstart file, it will be replaced by RID')
+        optparser.add_option('', '--release', type='string', dest='release', default=None, metavar='RID', help='Generate a release of RID with all necessary files, when @BUILD_ID@ is contained in kickstart file, it will be replaced by RID')
         optparser.add_option("", "--record-pkgs", type="string", dest="record_pkgs", default=None,
                              help='Record the info of installed packages, multiple values can be specified which joined by ",", valid values: "name", "content", "license"')
         optparser.add_option('', '--pkgmgr', type='string', dest='pkgmgr', default=None, help='Specify backend package manager')
index 89275c6..2425f88 100644 (file)
@@ -924,7 +924,7 @@ class BaseImageCreator(object):
         This method applies the (e.g. keyboard or network) configuration
         specified in the kickstart and executes the kickstart %post scripts.
 
-        If neccessary, it also prepares the image to be bootable by e.g.
+        If necessary, it also prepares the image to be bootable by e.g.
         creating an initrd and bootloader configuration.
 
         """
index 174b9b6..ee46b0d 100755 (executable)
--- a/tools/mic
+++ b/tools/mic
@@ -38,7 +38,7 @@ class Mic(cmdln.Cmdln):
     def get_optparser(self):
         optparser = cmdln.CmdlnOptionParser(self, version=self.version)
         optparser.add_option('-d', '--debug', action='store_true', dest='debug', help='print debug message')
-        optparser.add_option('-v', '--verbose', action='store_true', dest='verbose', help='verbose infomation')
+        optparser.add_option('-v', '--verbose', action='store_true', dest='verbose', help='verbose information')
         return optparser
 
     def postoptparse(self):
@@ -80,7 +80,7 @@ class Mic(cmdln.Cmdln):
     def do_convert(self, subcmd, opts, *args):
         """${cmd_name}: convert image format
 
-        usage:
+        Usage:
             mic convert <imagefile> <destformat>
 
         ${cmd_option_list}
@@ -124,7 +124,7 @@ class Mic(cmdln.Cmdln):
     def do_chroot(self, subcmd, opts, *args):
         """${cmd_name}: chroot into an image
 
-        usage:
+        Usage:
             mic chroot <imagefile>
 
         ${cmd_option_list}