diff --git a/XD.c b/XD.c index 2790fc7..20add73 100644 --- a/XD.c +++ b/XD.c @@ -163,14 +163,12 @@ has_staged(git_repository *repo) int main(int argc, char *argv[]) { - int i, code = -1; + int code = -1; /* print version information */ - for (i = 1; i < argc; i++) { - if (strcmp(argv[i], "-v") == 0) { - printf("XD v%s\n", VERSION); - return 0; - } + if (strcmp(argv[1], "-v") == 0) { + printf("XD [number] v%s\n", VERSION); + return 0; } #ifdef GIT