Command_Line::printEmail($client, $auth, $issue_id, $argv[3], $full); break; // note related commands // note related commands case 'list-notes': case 'ln': // list notes for the given issues Command_Line::listNotes($client, $auth, $issue_id); break; case 'get-note': case 'gn': // view a note if (count($argv) == 3) { Command_Line::quit('Missing parameter for the note number'); } Command_Line::printNote($client, $auth, $issue_id, $argv[3]); break; case 'convert-note': case 'cn': // convert a note to an email if (empty($argv[3])) { Command_Line::quit('Missing parameter for the note number'); } if (@$argv[4] != 'draft' && @$argv[4] != 'email') { Command_Line::quit("4th parameter must be 'draft' or 'email'"); } if (@$argv[5] == 'authorize') { $authorize_sender = true; } else { $authorize_sender = false; }