diff options
author | Mattias Backman <mattias.backman@linaro.org> | 2011-10-12 12:11:48 +0200 |
---|---|---|
committer | Mattias Backman <mattias.backman@linaro.org> | 2011-10-12 12:11:48 +0200 |
commit | ee937dee3622375bcbc977edf426c19c3eef5aa9 (patch) | |
tree | d81e472e8c24c0fdce6834b502ded4abf1ea9def /linaro_image_tools/media_create/__init__.py | |
parent | 510ae4f1a0f765bd147750ec48130da2591f22f3 (diff) |
Add aliases for command line options using dashes instead of underscores.
Diffstat (limited to 'linaro_image_tools/media_create/__init__.py')
-rw-r--r-- | linaro_image_tools/media_create/__init__.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/linaro_image_tools/media_create/__init__.py b/linaro_image_tools/media_create/__init__.py index c5fc2da..a552166 100644 --- a/linaro_image_tools/media_create/__init__.py +++ b/linaro_image_tools/media_create/__init__.py @@ -53,7 +53,7 @@ def get_args_parser(): group.add_argument( '--mmc', dest='device', help='The storage device to use.') group.add_argument( - '--image_file', dest='device', + '--image_file', '--image-file', dest='device', help='File where we should write the QEMU image.') parser.add_argument( '--dev', required=True, dest='board', choices=KNOWN_BOARDS, @@ -62,13 +62,13 @@ def get_args_parser(): '--rootfs', default='ext4', choices=['ext2', 'ext3', 'ext4', 'btrfs'], help='Type of filesystem to use for the rootfs') parser.add_argument( - '--rfs_label', default='rootfs', + '--rfs_label', '--rfs-label', default='rootfs', help='Label to use for the root filesystem.') parser.add_argument( - '--boot_label', default='boot', + '--boot_label', '--boot-label', default='boot', help='Label to use for the boot filesystem.') parser.add_argument( - '--swap_file', type=int, + '--swap_file', '--swap-file', type=int, help='Create a swap file of the given size (in MBs).') group = parser.add_mutually_exclusive_group() group.add_argument( @@ -97,7 +97,7 @@ def get_args_parser(): '--hwpack-force-yes', action='store_true', help='Pass --force-yes to linaro-hwpack-install') parser.add_argument( - '--image_size', default='3G', + '--image_size', '--image-size', default='3G', help=('The image size, specified in mega/giga bytes (e.g. 3000M or ' '3G); use with --image_file only')) parser.add_argument( @@ -134,17 +134,17 @@ def get_android_args_parser(): group.add_argument( '--mmc', dest='device', help='The storage device to use.') group.add_argument( - '--image_file', dest='device', + '--image_file', '--image-file', dest='device', help='File where we should write the image file.') parser.add_argument( - '--image_size', default='2G', + '--image_size', '--image-size', default='2G', help=('The image size, specified in mega/giga bytes (e.g. 3000M or ' '3G); use with --image_file only')) parser.add_argument( '--dev', required=True, dest='board', choices=ANDROID_KNOWN_BOARDS, help='Generate an SD card or image for the given board.') parser.add_argument( - '--boot_label', default='boot', + '--boot_label', '--boot-label', default='boot', help='Label to use for the boot filesystem.') parser.add_argument( '--console', action='append', dest='consoles', default=[], |