summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ab4af23)
raw | patch | inline | side by side (parent: ab4af23)
author | Jonas Fonseca <fonseca@diku.dk> | |
Sun, 17 Sep 2006 22:57:30 +0000 (00:57 +0200) | ||
committer | Jonas Fonseca <fonseca@antimatter.localdomain> | |
Sun, 17 Sep 2006 22:57:30 +0000 (00:57 +0200) |
tig.c | patch | blob | history |
index 7511353c8e3fb3ed70ac3194c29b2070015ad64c..18b4488eb825d56041156ded00a5e2df7199256e 100644 (file)
--- a/tig.c
+++ b/tig.c
for (i = 1; i < argc; i++) {
char *opt = argv[i];
+ if (opt[0] && opt[0] != '-')
+ break;
+
if (!strcmp(opt, "-l")) {
opt_request = REQ_VIEW_LOG;
continue;
break;
}
- if (opt[0] && opt[0] != '-')
- break;
-
die("unknown option '%s'\n\n%s", opt, usage);
}