Example #1
0
     if (count($argv) == 3) {
         Command_Line::quit('Missing parameter for the email number');
     }
     if (@$argv[4] == '--full') {
         $full = true;
     } else {
         $full = false;
     }
     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');
     }