better default behavior for -u; also, whitespace
@@ -80,7 +80,6 @@ _main_getopt(c3_i argc, c3_c** argv)
u3_Host.ops_u.rep = c3n;
u3_Host.ops_u.tex = c3n;
u3_Host.ops_u.veb = c3n;
- u3_Host.ops_u.url_c = "https://bootstrap.urbit.org/latest.pill";
u3_Host.ops_u.kno_w = DefaultKernel;
while ( (ch_i=getopt(argc, argv,"G:B:A:I:w:u:t:f:k:l:n:p:r:LabcdgqvxFMPDXR")) != -1 ) {
@@ -234,6 +233,8 @@ _main_getopt(c3_i argc, c3_c** argv)
if ( u3_Host.ops_u.nuu != c3y && u3_Host.ops_u.url_c != 0) {
fprintf(stderr, "-u only makes sense when bootstrapping a new instance\n");
return c3n;
+ } else if ( u3_Host.ops_u.nuu == c3y && u3_Host.ops_u.url_c == 0 ) {
+ u3_Host.ops_u.url_c = "https://bootstrap.urbit.org/latest.pill";
}
if ( u3_Host.ops_u.pil_c != 0 ) {
