tools

various tools
git clone git://deadbeef.fr/tools.git
Log | Files | Refs | README | LICENSE

commit 39551f2988bc8215aa6e824ce557e863823cbf7c
parent a237d993b5c97bface28534c1d08216bd580829f
Author: Morel BĂ©renger <berengermorel76@gmail.com>
Date:   Sat, 30 May 2020 07:07:00 +0200

added an option to allow disabling cmdline args except --help

Diffstat:
Msrc/lmerge.cpp | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/lmerge.cpp b/src/lmerge.cpp @@ -89,9 +89,11 @@ int main( int argc, char const *const *argv ) opt_desc_t opts[] = { { "help", "shows this message", 'h', 0, nullptr, nullptr, nullptr }, +#ifndef NO_CMDLINE { "field_sep", "field separator", 't' , 0, &SEP_START, set<char const**>, show<char*> }, { "entry_sep", "entry separator", 'l' , 0, &SEP_ENTRY, set<char const**>, show<char*> }, { "fields" , "fields to compare", 'f', 0, &FIELDS , set<char const**>, show<char*> }, +#endif }; auto b_opts = std::begin( opts ); auto e_opts = std::end( opts );