.. SPDX-FileCopyrightText: Yun Hsiao Wu SPDX-License-Identifier: MIT Command Line Interface ====================== -P The input plugin folder name (by default also as the comment guard tag). Always required. -E The engine root directory, default to the engine in which this repo is located. -D Define custom config variables. Actions ------- -S Setup the specified plugin with proper configs & scripts, run once per plugin -R Search specified file or directory, register any patched file and generate -U Search specified file or directory, unregister any patched file and update -G Generate/update patches -C Clear patches from target files -A Apply existing patches and copy all new sources (default action) Modifiers --------- -i , --inclusive-filter Inclusive target path filter for all actions -e , --exclusive-filter Exclusive target path filter for all actions -n , --incremental Update patches incrementally based on existing patch status -l, --link Make symbolic links instead of copying all the new files -f, --force Force override existing files -d, --dry-run Test run, safely executes the action with all engine output remapped to the plugin's ``Intermediate/Crysknife/Playground`` directory -v, --verbose Shorthand for ``--log-level verbose`` — log every config decision (skip / flatten / remap rules), plus everything below. -q, --quiet Shorthand for ``--log-level warning`` — suppress info / action lines so only warnings and errors surface. Useful for CI pipelines. -p, --protected Patches will be saved to / loaded from protected sources which will not be committed -t, --treat-patch-as-file Treat patches as regular files, copy/link them directly Parameters ---------- --log-level Set the minimum severity that reaches the console. Defaults to ``info``. Anything below the chosen level is dropped silently. Equivalent shortcuts: ``-v`` (verbose), ``-q`` (warning). --patch-context Global patch context length when generating patches, defaults to 250 --content-tolerance Content tolerance in [0, 1] when matching sources, default to 0.3 --line-tolerance Line tolerance when matching sources, defaults to infinity (line numbers may vary significantly between engine versions) .. note:: Actions are combinatorial: e.g. ``-AG`` for apply & generate (round trip), ``-GC`` for generate & clear (retraction)