changeset 2440:5b8cb850f5ab

Rename extract short from 'e' to 'x'.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 26 Feb 2020 18:15:17 +0200
parents f81b42dd600d
children 275374725598
files tools/packed.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;