summaryrefslogtreecommitdiffstats
path: root/trans
diff options
context:
space:
mode:
Diffstat (limited to 'trans')
-rw-r--r--trans/wretch_trans.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/trans/wretch_trans.c b/trans/wretch_trans.c
index 9d6ad680..6a0021bf 100644
--- a/trans/wretch_trans.c
+++ b/trans/wretch_trans.c
@@ -131,9 +131,8 @@ int main(int argc, char *argv[])
return 0;
}
-
- path = argv[1];
- board = argv[2];
+ path = argv[optind];
+ board = argv[optind+1];
if (!dashd(path)) {
fprintf(stderr, "%s is not directory\n", path);