diff options
| author | Tristan Riehs <tristan.riehs@inria.fr> | 2026-06-07 15:16:47 +0200 |
|---|---|---|
| committer | Tristan Riehs <tristan.riehs@inria.fr> | 2026-06-07 15:16:47 +0200 |
| commit | 0aea9d47490ff391ec5859dc8110041a143c8dae (patch) | |
| tree | 7be3250096d22804c98426fece786608ed100a69 /src/main.c | |
| parent | 9f0b0355e8836a79dc1031f18744ff1945991981 (diff) | |
Rewrite ftag_config_init
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1085,18 +1085,18 @@ int main(int argc, char *argv[]) able to only transfer the new files, maybe using rsync. */ }; const int toplevel_command_count = sizeof(toplevel_commands) / sizeof(struct ftag_command); - char* config_file = NULL; + const char *config_file = NULL; const char *optstring = "c:h"; int opt; while ((opt = getopt(argc, argv, optstring)) != -1) { switch (opt) { - case 'h': - ftag_help(0, NULL); - exit(EXIT_SUCCESS); case 'c': config_file = optarg; break; + case 'h': + ftag_help(0, NULL); + exit(EXIT_SUCCESS); case'?': default: ftag_help(0, NULL); |
