Command line ============ The package installs ``yaranormalize`` and ``yara_uniq``. Both are also available as subcommands of ``python -m yaratool``. yaranormalize ------------- .. code-block:: console $ yaranormalize [-i in_file]... [-o out_file] [-h | -H] [--hash-version 1|2] $ python -m yaratool normalize ... ``-i`` input file (repeatable, default STDIN); ``-o`` output file (default STDOUT); ``-h`` include the yara hash in the normalized rule; ``-H`` print only the hash of each rule; ``--hash-version`` picks the legacy ``yn01`` (1) or the default ``yn02`` (2) hash. yara_uniq --------- .. code-block:: console $ yara_uniq [-i in_file]... [-o out_file] [-u | -d] [--hash-version 1|2] $ python -m yaratool uniq ... By default the first copy of each rule is printed and duplicates are omitted. ``-u`` prints only rules that are never duplicated; ``-d`` prints every copy of rules that are duplicated. What counts as a duplicate is decided by the rule hash, so ``--hash-version`` applies here too. .. automodule:: yaratool.__main__ :members: normalize_main, uniq_main, main