From 1c13ae4ed5d84b32c2c1a0698f9e688c312de989 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 11 Jan 2016 15:14:32 +0200 Subject: Documentation improvements --- bpkg/pkg-purge.cli | 45 ++++++++++++++++++++++++--------------------- 1 file changed, 24 insertions(+), 21 deletions(-) (limited to 'bpkg/pkg-purge.cli') diff --git a/bpkg/pkg-purge.cli b/bpkg/pkg-purge.cli index da618d3..490f316 100644 --- a/bpkg/pkg-purge.cli +++ b/bpkg/pkg-purge.cli @@ -8,39 +8,42 @@ include ; "\name=bpkg-pkg-purge" "\summary=purge package" -/* -"\h{SYNOPSIS} +namespace bpkg +{ + { + " ", -bpkg pkg-purge [] " + "\h|SYNOPSIS| -"\h{DESCRIPTION} + \c{\b{bpkg pkg-purge} [] } -The \cb{pkg-purge} command removes the package directory and archive -from the filesystem and removes the package from the configuration's -database. Only packages in the \cb{fetched} and \cb{unpacked} state can -be purged plus \cb{broken} packages if the \cb{-f|--force} options is -specified (see this option's description for details on purging broken -packages). If the \cb{-k|--keep} option is specified, then the package -archive is not removed (see this option's description for details on -this mode)." -*/ + \h|DESCRIPTION| + + The \cb{pkg-purge} command removes the package directory and archive from + the filesystem and removes the package from the configuration. Only + packages in the \cb{fetched} and \cb{unpacked} state + (\l{bpkg-pkg-status(1)}) can be purged plus \cb{broken} packages if the + \cb{--force|-f} option is specified (see the option's description for + details on purging broken packages). If the \cb{--keep|-k} option is + specified, then the package archive is not removed (see the option's + description for details on this mode)." + } -namespace bpkg -{ class pkg_purge_options: configuration_options { + "\h|PKG-PURGE OPTIONS|" + bool --keep|-k { - "Keep the package archive. Note that in this mode the package is - still retained in the configuration's database in the \cb{fetched} - state." + "Keep the package archive. Note that in this mode the package is still + retained in the configuration's database in the \cb{fetched} state." } bool --force|-f { - "Purge a broken package. In this mode \cb{bpkg} will verify that - the package directory and archive no longer exist and will remove - the package from the configuration's database." + "Purge a broken package. In this mode \cb{bpkg} will verify that the + package directory and archive no longer exist and then remove the + package from the configuration." } }; } -- cgit v1.1