From 408b85d07613050c3abd5edf9f826bf735635e50 Mon Sep 17 00:00:00 2001 From: Micah Snyder Date: Wed, 11 Dec 2024 11:53:15 -0500 Subject: [PATCH] sigtool: place commonly used commands at the top of help string --- sigtool/sigtool.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/sigtool/sigtool.c b/sigtool/sigtool.c index 6122febf01..4a5d9e48b9 100644 --- a/sigtool/sigtool.c +++ b/sigtool/sigtool.c @@ -3938,6 +3938,14 @@ static void help(void) mprintf(LOGG_INFO, " --tempdir=DIRECTORY Create temporary files in DIRECTORY\n"); mprintf(LOGG_INFO, " --leave-temps[=yes/no(*)] Do not remove temporary files\n"); mprintf(LOGG_INFO, "\n"); + mprintf(LOGG_INFO, " Commands for working with signatures:\n"); + mprintf(LOGG_INFO, "\n"); + mprintf(LOGG_INFO, " --list-sigs[=FILE] -l[FILE] List signature names\n"); + mprintf(LOGG_INFO, " --find-sigs=REGEX -fREGEX Find signatures matching REGEX\n"); + mprintf(LOGG_INFO, " --decode-sigs Decode signatures from stdin\n"); + mprintf(LOGG_INFO, " --test-sigs=DATABASE TARGET_FILE Test signatures from DATABASE against \n"); + mprintf(LOGG_INFO, " TARGET_FILE\n"); + mprintf(LOGG_INFO, "\n"); mprintf(LOGG_INFO, " Commands to generate signatures:\n"); mprintf(LOGG_INFO, "\n"); mprintf(LOGG_INFO, " --md5 [FILES] Generate MD5 hash from stdin\n"); @@ -3999,14 +4007,6 @@ static void help(void) mprintf(LOGG_INFO, "\n"); mprintf(LOGG_INFO, " --unpack-current=SHORTNAME Unpack local CVD/CLD into cwd\n"); mprintf(LOGG_INFO, "\n"); - mprintf(LOGG_INFO, " Commands for working with signatures:\n"); - mprintf(LOGG_INFO, "\n"); - mprintf(LOGG_INFO, " --list-sigs[=FILE] -l[FILE] List signature names\n"); - mprintf(LOGG_INFO, " --find-sigs=REGEX -fREGEX Find signatures matching REGEX\n"); - mprintf(LOGG_INFO, " --decode-sigs Decode signatures from stdin\n"); - mprintf(LOGG_INFO, " --test-sigs=DATABASE TARGET_FILE Test signatures from DATABASE against \n"); - mprintf(LOGG_INFO, " TARGET_FILE\n"); - mprintf(LOGG_INFO, "\n"); mprintf(LOGG_INFO, " Commands for working with CDIFF patch files:\n"); mprintf(LOGG_INFO, "\n"); mprintf(LOGG_INFO, " --diff=OLD NEW -d OLD NEW Create diff for OLD and NEW CVDs\n");