]> www.infradead.org Git - mtd-utils.git/commit
flash_{un,}lock: abstract the argument positions
authorBrian Norris <computersforpeace@gmail.com>
Thu, 27 Aug 2015 21:45:48 +0000 (14:45 -0700)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 11 Nov 2015 22:05:36 +0000 (14:05 -0800)
commit5b906ca06bd08fffb50afb64c68e161556bbfcbd
tree37d3545abce7e26ba9a208382749837bb84aa987
parentc446c257406f51691dd289fa58e476c81c8d6ddd
flash_{un,}lock: abstract the argument positions

Previously, there were no options (besides stand-alone --help and
--version), so we just used fixed-position argv indexes. Let's change
that.

Also clean up the sanity checks a bit to make them more verbose and
specific.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
flash_unlock.c