#!/usr/bin/env php . */ define('INSTALLDIR', realpath(dirname(__FILE__) . '/..')); $shortoptions = 'i::n::y'; $longoptions = array('id=', 'nickname=', 'yes'); $helptext = <<nickname}' ({$user->id}). Are you sure? [y/N] "; $response = fgets(STDIN); if (strtolower(trim($response)) != 'y') { print "Aborting.\n"; exit(0); } } print "Deleting..."; $user->delete(); print "DONE.\n";