From adb4db475e458879d98a1b1ef061673707c0aa4d Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Mon, 31 Aug 2015 16:02:11 +0200 Subject: [PATCH] imv-os: Add some useful usage output to the pacman utility Fixes #487. --- src/libimcv/plugins/imv_os/pacman.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/libimcv/plugins/imv_os/pacman.c b/src/libimcv/plugins/imv_os/pacman.c index 088313cd9..fbcab5eba 100644 --- a/src/libimcv/plugins/imv_os/pacman.c +++ b/src/libimcv/plugins/imv_os/pacman.c @@ -104,8 +104,14 @@ static void cleanup(void) static void usage(void) { - printf("Usage:\n" - "ipsec pacman --product --file [--update]\n"); + printf("Parses package information files from Debian/Ubuntu repositories and\n"); + printf("stores the extracted information in the database used by the OS IMV.\n\n"); + printf("ipsec pacman --product --file [--security]\n\n"); + printf(" --help print usage information\n"); + printf(" --product name of the Debian/Ubuntu release, as stored in the DB\n"); + printf(" --file package information file to parse\n"); + printf(" --security set this when parsing a file with security updates\n"); + printf("\n"); } /**