Add -p option, which says to allow partial allocation (reserve what
nodes it can). Change exit value; return -1 on fatal error, otherwise return the number of nodes that could not be allocated. Combined with the -p switch, assign_wrapper can easily determine that nalloc was able to reserve a subset of the nodes. Also fix up getopts() call, which had its arguments backwards! Good thing we hardly pass switches to nalloc.
Showing with 22 additions and 8 deletions