@@ -7,6 +7,8 @@ import { join } from "path";
77import { ScriptHistory } from "./ScriptHistory" ;
88import { commandHelp } from "./commandHelp" ;
99
10+ const MAX_AP = 148 ;
11+
1012const timer = createTimer ( ) ;
1113const globalOpts = {
1214 verbose : { type : "boolean" , short : "v" , default : false } ,
@@ -55,7 +57,7 @@ function commandCalculate() {
5557 args : process . argv . slice ( 2 ) ,
5658 options : {
5759 ...globalOpts ,
58- max : { type : "string" , short : "m" , default : "144" } ,
60+ max : { type : "string" , short : "m" , default : MAX_AP . toString ( ) } ,
5961 target : { type : "string" , short : "t" } ,
6062 node : { type : "string" , short : "n" }
6163 } ,
@@ -68,7 +70,7 @@ function commandCalculate() {
6870 value : args . values . max ,
6971 name : "--max" ,
7072 min : 20 ,
71- fallback : 144
73+ fallback : MAX_AP
7274 } ) ;
7375 const nodeCost = parseNumericArg ( {
7476 value : args . values . node ,
@@ -126,7 +128,7 @@ async function main() {
126128
127129 // handle help command
128130 if ( argsInit . values . help || firstPositional == "help" ) {
129- commandHelp ( argsInit . positionals ) ;
131+ commandHelp ( argsInit . positionals , MAX_AP ) ;
130132 return ;
131133 }
132134
0 commit comments