prefer swap device option

This commit is contained in:
Carlos J. Torres 2014-02-08 22:24:17 -05:00 committed by sin
parent 9938320eea
commit c41c38649c

View File

@ -10,7 +10,7 @@
static void
usage(void)
{
eprintf("usage: %s [-d] [-a] device\n", argv0);
eprintf("usage: %s [-dp] [-a] device\n", argv0);
}
int
@ -28,6 +28,9 @@ main(int argc, char *argv[])
case 'd':
flags |= SWAP_FLAG_DISCARD;
break;
case 'p':
flags |= SWAP_FLAG_PREFER;
break;
default:
usage();
} ARGEND;