Generated from mops edit --help by ./gradlew :cli:updateReference. Do not edit this page. Global options are listed
in the index.
Edit MPS project data.
Usage: mops edit [-h] [COMMAND]
Edit MPS project data.
Commands:
model Apply a JSON batch of edit operations.
help Display help information about the specified command.
Options:
-h, --help Show this help message and exit.
Apply a JSON batch of edit operations.
Usage: mops edit model [-h] [--[no-]ignore-missing-languages]
[--constraints=MODE] [--file=PATH]
Apply a JSON batch of edit operations.
Options:
--constraints=MODE What a constraint violation does: advisory (report
it and apply the batch anyway) or strict (report
it and block the batch, saving nothing; default).
--file=PATH Read the edit batch from a JSON file instead of
stdin.
-h, --help Show this help message and exit.
--[no-]ignore-missing-languages
Skip with a warning a concept whose constraints
cannot be checked because its language did not
load. By default such a concept fails the batch.
An operation that names a concept resolves it the same way `mops find
instances` does: a dropped `.structure.` infix is forgiven, and a name that
does not resolve fails the batch, changing nothing, with the same diagnosis
(unknown language, unloaded language, or a "did you mean" among a loaded
language's concepts).
Prints a JSON object: created (aliases to the references of the nodes they
bound), violations, warnings, and notes (one line per used language or model
import that the saved edit added).
Operation reference: mops explain edit