Skip to content

Commit 119bd73

Browse files
committed
add default-new-contest-cmd global config option
1 parent de5f0ed commit 119bd73

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/config.ts

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ type Conf = import("conf");
55
export const defaults = {
66
["oj-path"]: undefined,
77
["default-contest-dirname-format"]: "{ContestID}",
8+
["default-new-contest-cmd"]: undefined,
89
["default-task-dirname-format"]: "{tasklabel}",
910
["default-test-dirname-format"]: "tests",
1011
["default-task-choice"]: "inquire",

src/help.ts

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export const format_strings = `Supported format strings:
2929
export const global_config = `Global config options list:
3030
oj-path install path of online-judge-tools (auto detected)
3131
default-contest-dirname-format default name of contest directory (created by \`acc new\` command)
32+
default-new-contest-cmd default --cmd option for \`acc new\` command (see also: \`acc new -h\`)
3233
default-task-dirname-format default name of task directory (created by \`acc new|add\` command)
3334
default-test-dirname-format default name of sample cases directory
3435
default-task-choice default --choice option for \`acc new|add\` command (see also: \`acc new|add -h\`)

0 commit comments

Comments
 (0)