| skipped 101 lines |
102 | 102 | | result = EXIT_SUCCESS; |
103 | 103 | | if (argc > 1) { |
104 | 104 | | subprogram = argv[1]; |
105 | | - | if (strcmp(subprogram, "init") == 0) { |
| 105 | + | if (strcmp(subprogram, "i") == 0 || strcmp(subprogram, "init") == 0) { |
106 | 106 | | result = run_init(argc, argv, cfg); |
107 | | - | } else if (strcmp(subprogram, "status") == 0) { |
| 107 | + | } else if (strcmp(subprogram, "s") == 0 || |
| 108 | + | strcmp(subprogram, "status") == 0) { |
108 | 109 | | result = run_status(argc, argv, cfg); |
109 | | - | } else if (strcmp(subprogram, "add") == 0) { |
| 110 | + | } else if (strcmp(subprogram, "a") == 0 || strcmp(subprogram, "add") == 0) { |
110 | 111 | | result = run_add(argc, argv, cfg); |
111 | | - | } else if (strcmp(subprogram, "remove") == 0) { |
| 112 | + | } else if (strcmp(subprogram, "r") == 0 || strcmp(subprogram, "rm") == 0 || |
| 113 | + | strcmp(subprogram, "remove") == 0) { |
112 | 114 | | result = run_remove(argc, argv, cfg); |
113 | | - | } else if (strcmp(subprogram, "list") == 0) { |
| 115 | + | } else if (strcmp(subprogram, "l") == 0 || |
| 116 | + | strcmp(subprogram, "list") == 0) { |
114 | 117 | | result = run_list(argc, argv, cfg); |
115 | | - | } else if (strcmp(subprogram, "summary") == 0) { |
| 118 | + | } else if (strcmp(subprogram, "sm") == 0 || |
| 119 | + | strcmp(subprogram, "summary") == 0) { |
116 | 120 | | result = run_summary(argc, argv, cfg); |
117 | 121 | | } else { |
118 | 122 | | print_help(); |
| skipped 16 lines |