summaryrefslogtreecommitdiffstats
path: root/sbin/swapon
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2005-02-10 09:19:34 +0000
committerru <ru@FreeBSD.org>2005-02-10 09:19:34 +0000
commit719be5d34133092608f2cb4b6a8acd6cf2c403c6 (patch)
treed6dac94023a6f3bfab88fb797e8cd641b0e912b2 /sbin/swapon
parent7b37822a694ba18e94110b97e574dc91753e1d6c (diff)
downloadFreeBSD-src-719be5d34133092608f2cb4b6a8acd6cf2c403c6.zip
FreeBSD-src-719be5d34133092608f2cb4b6a8acd6cf2c403c6.tar.gz
Sync program's usage() with manpage's SYNOPSIS.
Diffstat (limited to 'sbin/swapon')
-rw-r--r--sbin/swapon/swapon.86
-rw-r--r--sbin/swapon/swapon.c8
2 files changed, 5 insertions, 9 deletions
diff --git a/sbin/swapon/swapon.8 b/sbin/swapon/swapon.8
index 73e17e1..f4ecd14 100644
--- a/sbin/swapon/swapon.8
+++ b/sbin/swapon/swapon.8
@@ -35,10 +35,8 @@
.Nm swapon , swapoff , swapctl
.Nd "specify devices for paging and swapping"
.Sh SYNOPSIS
-.Nm swapon Ar
-.Nm swapon Fl a
-.Nm swapoff Ar
-.Nm swapoff Fl a
+.Nm swapon Fl a | Ar
+.Nm swapoff Fl a | Ar
.Nm swapctl
.Op Fl AhklsU
.Oo
diff --git a/sbin/swapon/swapon.c b/sbin/swapon/swapon.c
index 2d330a6..13297f9 100644
--- a/sbin/swapon/swapon.c
+++ b/sbin/swapon/swapon.c
@@ -194,14 +194,12 @@ usage(void)
{
fprintf(stderr, "usage: %s ", getprogname());
switch(orig_prog) {
- case SWAPOFF:
- fprintf(stderr, "[-a] [special_file ...]\n");
- break;
case SWAPON:
- fprintf(stderr, "[-a] [special_file ...]\n");
+ case SWAPOFF:
+ fprintf(stderr, "-a | file ...\n");
break;
case SWAPCTL:
- fprintf(stderr, "[-lshAU] [-a/-d special_file ...]\n");
+ fprintf(stderr, "[-AhklsU] [-a file ... | -d file ...]\n");
break;
}
exit(1);
OpenPOWER on IntegriCloud