File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -5,11 +5,13 @@ function main() {
55 throw new Error ( "No command line arguments passed" )
66 }
77 /*
8- * Format of the 'args' array: [`<COMMAND_NAME_1> <ARG1> <ARG2> .. <ARG N>`, `<COMMAND_NAME_2> <ARG1> <ARG2> .. <ARG N>`]
9- * Example: ["PLACE_ORDER 101 Apple 5", "TOTAL_COST 101"]
8+ * Format of the 'args' array: [
9+ * <COMMAND_NAME_1> <ARG1> <ARG2> .. <ARG N>,
10+ * <COMMAND_NAME_2> <ARG1> <ARG2> .. <ARG N>
11+ *]
1012 *
1113 * The code evaluator will execute this code by using the command
12- * node main.js 'PLACE_ORDER 101 Apple 5 ' 'TOTAL_COST 101 '
14+ * node main.js 'COMMAND_NAME_1 ARG1 ARG2 ARG3 ' 'COMMAND_NAME_2 ARG1 '
1315 *
1416 * We loop through the list of commands passed in as input arguments and handle each one of them
1517 */
@@ -33,4 +35,4 @@ function handle(cmd: string) {
3335 //TODO: implement the logic to handle each input
3436}
3537
36- main ( )
38+ main ( )
You can’t perform that action at this time.
0 commit comments