aboutsummaryrefslogtreecommitdiffhomepage
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index edea3de..8f72dd9 100644
--- a/main.c
+++ b/main.c
@@ -49,11 +49,11 @@ main(int argc, char **argv)
const char *file, *targ;
atexit(flushstd);
- if (argc < 2) {
+ optparse(&file, &targ, argv);
+ if (!file) {
efmt("usage: %s [options] <file>\n", *argv);
return 1;
}
- optparse(&file, &targ, argv);
targ_init(targ ? targ : "amd64-sysv");
initparser(&pr, file);