# HG changeset patch # User Matti Hamalainen # Date 1582733717 -7200 # Node ID 5b8cb850f5ab3a1dee8e7c3941a6e2c8ea77033b # Parent f81b42dd600dd4c694ed27b7a346f21bb33d5d74 Rename extract short from 'e' to 'x'. diff -r f81b42dd600d -r 5b8cb850f5ab tools/packed.c --- a/tools/packed.c Tue Feb 25 13:40:32 2020 +0200 +++ b/tools/packed.c Wed Feb 26 18:15:17 2020 +0200 @@ -45,7 +45,7 @@ { CMD_CREATE , 'c', "create", "Create and add files to PACK", OPT_NONE }, { CMD_ADD , 'a', "add", "Add files to PACK", OPT_NONE }, { CMD_LIST , 'l', "list", "List files in PACK", OPT_NONE }, - { CMD_EXTRACT , 'e', "extract", "Extract files from PACK", OPT_NONE }, + { CMD_EXTRACT , 'x', "extract", "Extract files from PACK", OPT_NONE }, }; static const int cmdListN = sizeof(cmdList) / sizeof(cmdList[0]); @@ -172,6 +172,7 @@ { const DMOptArg *cmd = &cmdList[n]; if ((currArg[0] == cmd->o_short && currArg[1] == 0) || + (currArg[0] == cmd->o_long[0] && currArg[1] == 0) || strcmp(currArg, cmd->o_long) == 0) { optCommand = cmd->id;