comparison 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
comparison
equal deleted inserted replaced
2407:c5a32812dd97 2408:60e119262c67
20 optDump = FALSE; 20 optDump = FALSE;
21 21
22 22
23 static const DMOptArg optList[] = 23 static const DMOptArg optList[] =
24 { 24 {
25 { 0, '?', "help", "Show this help and exit", OPT_NONE }, 25 { 0, '?', "help" , "Show this help", OPT_NONE },
26 { 1, 'p', "patterns", "View patterns", OPT_NONE }, 26 { 2, 'v', "verbose" , "Be more verbose", OPT_NONE },
27 { 2, 'i', "instruments", "View instruments", OPT_NONE }, 27
28 { 3, 'e', "extinstruments", "View extended instruments", OPT_NONE }, 28 { 10, 'p', "patterns" , "View patterns", OPT_NONE },
29 { 4, 'g', "general", "General information", OPT_NONE }, 29 { 12, 'i', "instruments" , "View instruments", OPT_NONE },
30 { 5, 'v', "verbose", "Be more verbose", OPT_NONE }, 30 { 14, 'e', "extinstruments" , "View extended instruments", OPT_NONE },
31 { 6, 'd', "dump", "Dump mode", OPT_NONE }, 31 { 16, 'g', "general" , "General information", OPT_NONE },
32 { 7, 'a', "all", "Dump all information (pat, ext, gen, inst)", OPT_NONE }, 32 { 18, 'd', "dump" , "Dump mode", OPT_NONE },
33 { 20, 'a', "all" , "Dump all information (pat, ext, gen, inst)", OPT_NONE },
33 }; 34 };
34 35
35 const int optListN = sizeof(optList) / sizeof(optList[0]); 36 const int optListN = sizeof(optList) / sizeof(optList[0]);
36 37
37 38
51 case 0: 52 case 0:
52 argShowHelp(); 53 argShowHelp();
53 exit(0); 54 exit(0);
54 break; 55 break;
55 56
56 case 1: 57 case 2:
58 dmVerbosity++;
59 break;
60
61 case 10:
57 optViewPatterns = TRUE; 62 optViewPatterns = TRUE;
58 break; 63 break;
59 64
60 case 2: 65 case 12:
61 optViewInstruments = TRUE; 66 optViewInstruments = TRUE;
62 break; 67 break;
63 68
64 case 3: 69 case 14:
65 optViewExtInstruments = TRUE; 70 optViewExtInstruments = TRUE;
66 break; 71 break;
67 72
68 case 4: 73 case 16:
69 optViewGeneralInfo = TRUE; 74 optViewGeneralInfo = TRUE;
70 break; 75 break;
71 76
72 case 5: 77 case 18:
73 dmVerbosity++;
74 break;
75
76 case 6:
77 optDump = TRUE; 78 optDump = TRUE;
78 break; 79 break;
79 80
80 case 7: 81 case 20:
81 optViewPatterns = TRUE; 82 optViewPatterns = TRUE;
82 optViewInstruments = TRUE; 83 optViewInstruments = TRUE;
83 optViewGeneralInfo = TRUE; 84 optViewGeneralInfo = TRUE;
84 optViewExtInstruments = TRUE; 85 optViewExtInstruments = TRUE;
85 break; 86 break;