--- /dev/null
+cdb linguist-language=Lua
+cdb-util linguist-language=Lua
old-digest new-digest notes
-The ``notes`` field extends to the end of the line; if newlines are desired in
-the recorded notes, use ``--inul`` and separate records by NUL bytes.
+The ``notes`` field extends to the end of the record; if newlines are desired in
+the recorded notes, use ``--inul`` (``-1``) and separate records by NUL bytes.
Ingest
======
-------------------- Argparse Globals and Command Grouping part 1 {{{
local argp = argparse("cdb", "checksum database tool")
+-- TODO: argp:add_help_command()
-- global options must come before commands, and must be options rather than
-- arguments if we want --help to do the right thing, sadly.
plapp.require_here()
local cdblib = require "cdblib"
+----------------------------------------------------------------- }}}
+---------------------------------------------- Argparse utilities {{{
+
local function argparse_flag_nul(c)
return c:flag("--nul -0")
:description("NUL-terminate output records")
+-- Library of code shared by cdb and cdb-util programs
-- SPDX-License-Identifier: AGPL-3.0-or-later
local plstringx = require "pl.stringx"