mirror of
https://github.com/urbit/shrub.git
synced 2024-12-22 18:31:44 +03:00
removes the option to set -l, -n, and -r (raft options)
This commit is contained in:
parent
0148b101e7
commit
3edcd47b7c
28
vere/main.c
28
vere/main.c
@ -90,7 +90,11 @@ _main_getopt(c3_i argc, c3_c** argv)
|
|||||||
u3_Host.ops_u.veb = c3n;
|
u3_Host.ops_u.veb = c3n;
|
||||||
u3_Host.ops_u.kno_w = DefaultKernel;
|
u3_Host.ops_u.kno_w = DefaultKernel;
|
||||||
|
|
||||||
while ( (ch_i=getopt(argc, argv,"G:B:K:A:H:w:u:e:E:f:F:k:l:n:p:r:NabcdgqstvxPDRS")) != -1 ) {
|
u3_Host.ops_u.rop_s = 0;
|
||||||
|
u3_Host.ops_u.raf_c = 0;
|
||||||
|
u3_Host.ops_u.nam_c = 0;
|
||||||
|
|
||||||
|
while ( (ch_i=getopt(argc, argv,"G:B:K:A:H:w:u:e:E:f:F:k:p:NabcdgqstvxPDRS")) != -1 ) {
|
||||||
switch ( ch_i ) {
|
switch ( ch_i ) {
|
||||||
case 'B': {
|
case 'B': {
|
||||||
u3_Host.ops_u.pil_c = strdup(optarg);
|
u3_Host.ops_u.pil_c = strdup(optarg);
|
||||||
@ -149,26 +153,12 @@ _main_getopt(c3_i argc, c3_c** argv)
|
|||||||
u3_Host.ops_u.key_c = strdup(optarg);
|
u3_Host.ops_u.key_c = strdup(optarg);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'l': {
|
|
||||||
if ( c3n == _main_readw(optarg, 65536, &arg_w) ) {
|
|
||||||
return c3n;
|
|
||||||
} else u3_Host.ops_u.rop_s = arg_w;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case 'n': {
|
|
||||||
u3_Host.ops_u.nam_c = strdup(optarg);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case 'p': {
|
case 'p': {
|
||||||
if ( c3n == _main_readw(optarg, 65536, &arg_w) ) {
|
if ( c3n == _main_readw(optarg, 65536, &arg_w) ) {
|
||||||
return c3n;
|
return c3n;
|
||||||
} else u3_Host.ops_u.por_s = arg_w;
|
} else u3_Host.ops_u.por_s = arg_w;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'r': {
|
|
||||||
u3_Host.ops_u.raf_c = strdup(optarg);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case 'R': {
|
case 'R': {
|
||||||
u3_Host.ops_u.rep = c3y;
|
u3_Host.ops_u.rep = c3y;
|
||||||
return c3y;
|
return c3y;
|
||||||
@ -248,11 +238,6 @@ _main_getopt(c3_i argc, c3_c** argv)
|
|||||||
return c3n;
|
return c3n;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( u3_Host.ops_u.rop_s == 0 && u3_Host.ops_u.raf_c != 0 ) {
|
|
||||||
fprintf(stderr, "The -r flag requires -l.\n");
|
|
||||||
return c3n;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( c3y == u3_Host.ops_u.bat ) {
|
if ( c3y == u3_Host.ops_u.bat ) {
|
||||||
u3_Host.ops_u.dem = c3y;
|
u3_Host.ops_u.dem = c3y;
|
||||||
u3_Host.ops_u.nuu = c3y;
|
u3_Host.ops_u.nuu = c3y;
|
||||||
@ -366,13 +351,10 @@ u3_ve_usage(c3_i argc, c3_c** argv)
|
|||||||
"-g Set GC flag\n",
|
"-g Set GC flag\n",
|
||||||
"-K stage Start at Hoon kernel version stage\n",
|
"-K stage Start at Hoon kernel version stage\n",
|
||||||
"-k keys Private key file\n",
|
"-k keys Private key file\n",
|
||||||
"-l port Initial peer port\n",
|
|
||||||
"-n host Set unix hostname\n",
|
|
||||||
"-N Enable networking in fake mode (-F)\n",
|
"-N Enable networking in fake mode (-F)\n",
|
||||||
"-p ames_port Set the ames port to bind to\n",
|
"-p ames_port Set the ames port to bind to\n",
|
||||||
"-P Profiling\n",
|
"-P Profiling\n",
|
||||||
"-q Quiet\n",
|
"-q Quiet\n",
|
||||||
"-r host Initial peer address\n",
|
|
||||||
"-R Report urbit build info\n",
|
"-R Report urbit build info\n",
|
||||||
"-s Pill URL from arvo git hash\n",
|
"-s Pill URL from arvo git hash\n",
|
||||||
"-S Disable battery hashing\n",
|
"-S Disable battery hashing\n",
|
||||||
|
Loading…
Reference in New Issue
Block a user