Skip to content

Commit de5f0ed

Browse files
committed
add help for --cmd option
1 parent 2a51433 commit de5f0ed

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/cli/index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ commander
2222
.on("--help", () => {
2323
console.log("");
2424
console.log(help.task_choices);
25+
console.log("");
26+
console.log(help.cmd_env_variables);
2527
});
2628

2729
commander

src/help.ts

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ export const task_choices = `Supported arguments for --choice:
66
(without --force option, same with "all")
77
next select the top task that is not added yet`;
88

9+
export const cmd_env_variables = `Environment variables available in --cmd option:
10+
$CONTEST_DIR the path of the contest directory
11+
$CONTEST_ID the contest id`;
12+
913
export const format_strings = `Supported format strings:
1014
{TaskLabel} task label (e.g. A, B, C, D, ...)
1115
{tasklabel} task label, lower case

0 commit comments

Comments
 (0)