NAME
ndpatch - apply diff to a structure
SYNOPSIS
ndpatch [OPTIONS]
ndpatch [OPTIONS] <file> [<patchfile>]
DESCRIPTION
Apply diff file to original one.
OPTIONS
- --help|-h
-
Print help message and exit.
- --ifmt <JSON|YAML>
-
Force specified input format usage. Automatically choosed (using file extension) if omitted.
- --[no]pretty
-
On/Off pretty-print for JSON. Enabled by default.
- --verbose|-v [int]
-
Increase verbosity, max level - 4.
- --version|-V
-
Print version and exit.
EXAMPLES
Apply patch:
ndpatch struct.json patch.json
EXIT STATUS
0 No errors occured.
1 Generic error code.
2 I/O Error.
8 Diff/patch related errors.
BUGS
Report bugs to https://github.com/mr-mixas/NDTools/issues
SEE ALSO
LICENSE AND COPYRIGHT
Copyright 2016-2018 Michael Samoglyadov <mixas at cpan.org>
.
This program is free software; you can redistribute it and/or modify it under the terms of GNU General Public License 3 or later versions.