summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorjianzhong.fang <jz.fang@samsung.com>2016-09-18 11:04:42 +0800
committerSoonKyu Park <sk7.park@samsung.com>2016-09-23 16:05:29 +0900
commit9fc4fea95ace5de63ed360de34cea0eb2ad0f2a3 (patch)
treea51f4ab8ea7a7da084c629d225bf1ae910ad1ff5 /tools
parent1ef2811340f0f5541fdd5787fe0da08ed5aac8ad (diff)
downloadmic-9fc4fea95ace5de63ed360de34cea0eb2ad0f2a3.tar.gz
mic-9fc4fea95ace5de63ed360de34cea0eb2ad0f2a3.tar.bz2
mic-9fc4fea95ace5de63ed360de34cea0eb2ad0f2a3.zip
Add subcommand option parameters(-v, -d, -i) for fixing tizen2.4 mobile issue
Change-Id: I18f0667bc7537aaf1e8eee5ec3320f1b52058071 Signed-off-by: jianzhong.fang <jz.fang@samsung.com>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/mic15
1 files changed, 12 insertions, 3 deletions
diff --git a/tools/mic b/tools/mic
index c54cb83..26df153 100755
--- a/tools/mic
+++ b/tools/mic
@@ -123,16 +123,25 @@ def create_parser(parser):
dest='strict_mode', default=False,
help='Abort creation of image, if there are some errors'
' during rpm installation. ')
+
+ parent_parser.add_argument('-d', '--debug', action='store_true',
+ help='debug output')
+ parent_parser.add_argument('-v', '--verbose', action='store_true',
+ help='verbose output')
+ parent_parser.add_argument('-i', '--interactive', action='store_true',
+ dest='interactive', default=True,
+ help='interactive output')
+
parser.set_defaults(alias="cr")
subparsers = parser.add_subparsers(title='Subcommands', dest='subcommand')
auto_parser = subparsers.add_parser('auto', parents=[parent_parser], help='auto detect image type from magic header')
-
- fs_parser = subparsers.add_parser('fs', parents=[parent_parser],
+
+ fs_parser = subparsers.add_parser('fs', parents=[parent_parser],
help='create fs image')
fs_parser.add_argument("--include-src", dest = "include_src",action = "store_true",
default = False, help = "Generate a image with source rpms included")
-
+
loop_parser = subparsers.add_parser('loop', parents=[parent_parser], help='create loop image')
loop_parser.add_argument("--compress-disk-image", dest="compress_image",