Skip to content

Commit ebb427b

Browse files
authored
Update comments in main.ts
1 parent 0663288 commit ebb427b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/main.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)