fprintf(stream, "\t--%s (-%c)\t: Migrate a resource from it current" " locaiton.  Use -H to specify a destination\n" "\t\t\t  Requires: -r, Optional: -H\n", "migrate", 'M'); fprintf(stream, "\t--%s (-%c)\t: Remove all constraints created by -M\n" "\t\t\t  Requires: -r\n", "un-migrate", 'U');
usage(const char *cmd, int exit_status){	FILE *stream;	stream = exit_status ? stderr : stdout;	fprintf(stream, "usage: %s [-?VS] -(L|Q|W|D|C|P|p) [options]\n", cmd);	fprintf(stream, "\t--%s (-%c)\t: this help message\n", "help", '?');	fprintf(stream, "\t--%s (-%c)\t: "		"turn on debug info. additional instances increase verbosity\n",		"verbose", 'V');	fprintf(stream, "\t--%s (-%c)\t: Print only the value on stdout (for use with -W)\n",		"silent", 'S');	fprintf(stream, "\nCommands\n");	fprintf(stream, "\t--%s (-%c)\t: List all resources\n", "list", 'L');	fprintf(stream, "\t--%s (-%c)\t: Query a resource\n"		"\t\t\t  Requires: -r\n", "query", 'Q');	fprintf(stream, "\t--%s (-%c)\t: Locate a resource\n"		"\t\t\t  Requires: -r\n", "locate", 'W');	fprintf(stream, "\t--%s (-%c)\t: Delete a resource from the CIB\n"		"\t\t\t  Requires: -r, -t\n", "delete", 'D');	fprintf(stream, "\t--%s (-%c)\t: Delete a resource from the LRM\n"		"\t\t\t  Requires: -r, -t.  Optional: -H\n", "cleanup", 'C');	fprintf(stream, "\t--%s (-%c)\t: Recheck for resources started outside of the CRM\n"		"\t\t\t  Optional: -H\n", "reprobe", 'P');	fprintf(stream, "\t--%s (-%c)\t: Refresh the CIB from the LRM\n"		"\t\t\t  Optional: -H\n", "refresh", 'R');	fprintf(stream, "\t--%s (-%c) <string>\t: "		"Set the named property for a resource\n"		"\t\t\t  Requires: -r, -t, -v", "set-property", 'p');	fprintf(stream, "\nOptions\n");	fprintf(stream, "\t--%s (-%c) <string>\t: Resource ID\n", "resource", 'r');	fprintf(stream, "\t--%s (-%c) <string>\t: "		"Resource type (primitive, clone, group, ...)\n",		"resource-type", 't');	fprintf(stream, "\t--%s (-%c) <string>\t: "		"Property value\n", "property-value", 'v');	fprintf(stream, "\t--%s (-%c) <string>\t: "		"Host name\n", "host-uname", 'H');	fflush(stream);	exit(exit_status);}