Mercurial > hg > dmlib
diff tools/dumpmod.c @ 2408:60e119262c67
Option index re-ordering cleanup work.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 13 Jan 2020 21:21:25 +0200 |
parents | b7cd5dd0b82e |
children | bc05bcfc4598 |
line wrap: on
line diff
--- a/tools/dumpmod.c Mon Jan 13 21:16:57 2020 +0200 +++ b/tools/dumpmod.c Mon Jan 13 21:21:25 2020 +0200 @@ -22,14 +22,15 @@ static const DMOptArg optList[] = { - { 0, '?', "help", "Show this help and exit", OPT_NONE }, - { 1, 'p', "patterns", "View patterns", OPT_NONE }, - { 2, 'i', "instruments", "View instruments", OPT_NONE }, - { 3, 'e', "extinstruments", "View extended instruments", OPT_NONE }, - { 4, 'g', "general", "General information", OPT_NONE }, - { 5, 'v', "verbose", "Be more verbose", OPT_NONE }, - { 6, 'd', "dump", "Dump mode", OPT_NONE }, - { 7, 'a', "all", "Dump all information (pat, ext, gen, inst)", OPT_NONE }, + { 0, '?', "help" , "Show this help", OPT_NONE }, + { 2, 'v', "verbose" , "Be more verbose", OPT_NONE }, + + { 10, 'p', "patterns" , "View patterns", OPT_NONE }, + { 12, 'i', "instruments" , "View instruments", OPT_NONE }, + { 14, 'e', "extinstruments" , "View extended instruments", OPT_NONE }, + { 16, 'g', "general" , "General information", OPT_NONE }, + { 18, 'd', "dump" , "Dump mode", OPT_NONE }, + { 20, 'a', "all" , "Dump all information (pat, ext, gen, inst)", OPT_NONE }, }; const int optListN = sizeof(optList) / sizeof(optList[0]); @@ -53,31 +54,31 @@ exit(0); break; - case 1: + case 2: + dmVerbosity++; + break; + + case 10: optViewPatterns = TRUE; break; - case 2: + case 12: optViewInstruments = TRUE; break; - case 3: + case 14: optViewExtInstruments = TRUE; break; - case 4: + case 16: optViewGeneralInfo = TRUE; break; - case 5: - dmVerbosity++; - break; - - case 6: + case 18: optDump = TRUE; break; - case 7: + case 20: optViewPatterns = TRUE; optViewInstruments = TRUE; optViewGeneralInfo = TRUE;