• Bernhard Nortmann's avatar
    fel: Improve on handling invalid options · 1d2182c4
    Bernhard Nortmann authored
    
    
    For unknown option-style arguments (starting with '-'), exit after
    printing an error message.
    
    This avoids situations where sunxi-fel would not report incorrect
    options (with no FEL device attached/detected) and fail with
    "Allwinner USB FEL device not found" instead, which is undesirable.
    
    TODO: Might have to eventually migrate this to some better argument
    parsing, e.g. getopt(3) or something similar.
    Signed-off-by: default avatarBernhard Nortmann <bernhard.nortmann@web.de>
    1d2182c4
fel.c 39.5 KB