@@ -20,6 +20,11 @@ export void add_task(string[] args)
2020 if (i < 2 ) {
2121 continue ; // ignore mcl and `add_task` command args
2222 }
23+ else if (arg == " --help" )
24+ {
25+ writeAddTaskHelp();
26+ return ;
27+ }
2328 else if (i == 2 )
2429 {
2530 taskManager.params.taskName = arg;
@@ -34,6 +39,27 @@ export void add_task(string[] args)
3439 taskManager.addTaskToCoda();
3540}
3641
42+ export void writeAddTaskHelp () {
43+ writeln(" mcl add_task <task-title> [<username/priority/status/milestone/estimate/tshirt-size> ..]" );
44+ writeln(" <username> is `@<name>` (might be a shorter name if registered in mcl_config.json)" );
45+ writeln(" <priority> is highest / high / normal / low" );
46+ writeln(" <status> is backlog / ready (for ready to start) / progress (for in progress) / done / blocker / paused / cancelled" );
47+ writeln(" <milestone> is project-specific, but can be auto-recognized based on shorter names in mcl_config.json" );
48+ writeln(" <estimate> is time(days) estimate, needs explicit `--estimate=..` for now" );
49+ writeln(" <tshirt-size> is S / M / L / XL" );
50+ writeln(" " );
51+ writeln(" for all you can also pass explicit flag like `--priority=<value>" );
52+ writeln(" " );
53+ writeln(" examples (with a hypothetical mcl_config.json):" );
54+ writeln(" mcl add_task \" test task\" @Paul low progress beta M" );
55+ writeln(" mcl add_task \" test task 2\" @Paul v1 L" );
56+ writeln(" mcl add_task \" test task 3\" @John done normal M beta" );
57+ writeln(" mcl add_task \" test task 4\" M backlog @John" );
58+ writeln(" mcl add_task \" test task 5\" " );
59+ writeln(" mcl add_task \" test task 6\" @Paul --priority=low backlog" );
60+ writeln(" mcl add_task \" test task 7\" @Paul --priority=low --status=backlog" );
61+ }
62+
3763struct TaskConfig {
3864 string codaApiToken;
3965 string [string ] userNames;
0 commit comments