From 503a953f2e2dd7c42472642bdab2f55ad30719bf Mon Sep 17 00:00:00 2001 From: "C. Guy Yarvin" Date: Fri, 5 Jun 2015 19:29:05 -0700 Subject: [PATCH] Default -c with -w. --- v/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/v/main.c b/v/main.c index 0054eddf6..d3bf66fb7 100644 --- a/v/main.c +++ b/v/main.c @@ -91,6 +91,8 @@ _main_getopt(c3_i argc, c3_c** argv) } case 'w': { u3_Host.ops_u.who_c = _main_presig(optarg); + u3_Host.ops_u.nuu = c3y; + u3_Host.dir_c = strdup(u3_Host.ops_u.who_c); break; } case 't': { @@ -181,7 +183,7 @@ _main_getopt(c3_i argc, c3_c** argv) } if ( argc != (optind + 1) ) { - return c3n; + return u3_Host.dir_c ? c3y : c3n; } else { { c3_c* ash_c;