bmap-flasher: change order of arguments
authorArtem Bityutskiy <artem.bityutskiy@intel.com>
Fri, 2 Nov 2012 12:33:20 +0000 (14:33 +0200)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Fri, 2 Nov 2012 12:33:20 +0000 (14:33 +0200)
bmap-flasher <src> <dest> is more intuitive than bmap-flasher <dst> <src>.

Change-Id: Ida87d73e538b7ec9f9b715d3fecd22e5e725461b
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
bmap-flasher

index fd39768..9e959fa 100755 (executable)
@@ -40,15 +40,15 @@ def parse_arguments():
     parser = argparse.ArgumentParser(description = __doc__,
                                      prog = 'bmap-flasher')
 
-    # The first command-line argument - block device node
-    text = "the block device node to flash the image to"
-    parser.add_argument("bdev", help = text)
-
-    # The second command-line argument - image file
+    # The first positional argument - image file
     text = "the image file to flash. Supported formats: uncompressed, " + \
            ", ".join(BmapFlasher.supported_image_formats)
     parser.add_argument("image", help = text)
 
+    # The second positional argument - block device node
+    text = "the block device node to flash the image to"
+    parser.add_argument("bdev", help = text)
+
     # The --bmap option
     text = "the block map file for the image"
     parser.add_argument("--bmap", help = text)