Skip to content

Main content

Option Negated Name Pair Audit

Audit explicit positive/no-name option pairs for simultaneous presence under a caller-listed negatable option bank; no boolean value interpretation.

Loading tool…

Description

Audit explicit positive/no-name option pairs for simultaneous presence under a caller-listed negatable option bank; no boolean value interpretation.

An argv vector already consists of literal argument strings. Shell quoting and tokenization happen before this representation; joining argv elements with spaces does not reconstruct a safe command string. Option aliases, duplicates, arity and dependencies are application policies that these tools take explicitly.

Audit explicit positive/no-name option pairs for simultaneous presence under a caller-listed negatable option bank; no boolean value interpretation.

When to use this tool

Use this tool to audit explicit positive/no-name option pairs for simultaneous presence under a caller-listed negatable option bank; no boolean value interpretation.

How to use the tool and how it works

  1. Enter present, names using the input definitions below.
  2. Run the operation. Resolve malformed-input errors before interpreting the result.
  3. Read result.conflicts. Interpret signs, units, ordering and null values using the rules below.

For each supplied negatable name return it when both the exact name and no-name occur in present. Preserve bank order, including duplicate bank entries.1

Input fieldMeaning and unitsAccepted input
presentExact names recorded as present, without implicit defaults.Dense list of at most 128 strings, each at most 8,192 UTF-16 code units.
namesCaller-supplied option-name bank, interpreted as described for negation or aliases.Dense list of at most 128 strings, each at most 8,192 UTF-16 code units.
Output fieldInterpretation
resultObject containing the fields below.
result.conflictsNegatable bank names present in both positive and no-name forms.
json
{
  "input": {
    "present": [
      "color",
      "no-color"
    ],
    "names": [
      "color",
      "quiet"
    ]
  },
  "output": {
    "result": {
      "conflicts": [
        "color"
      ]
    }
  }
}

Limitations and assumptions

  • This checks naming presence only; values, precedence and application-specific negation semantics are not interpreted.
  • Inputs are literal tokens or explicit records. The restricted long-name grammar is [A-Za-z0-9][A-Za-z0-9-]* where required. No universal option syntax, shell semantics or process execution is inferred.
  • Every declared top-level input is required and unknown fields are rejected. Ordinary strings are limited to 8,192 UTF-16 code units and lists to 128 entries, with tighter operation-specific bounds where stated. JSON text has bounded nesting and node counts.
  • Numeric outputs must be finite and within the absolute safe-integer magnitude; exact larger integers use decimal text. Source positions are zero-based UTF-16 offsets and span ends are exclusive unless a different convention is explicitly stated.

Alternative or Complementary methods

Use the application’s option schema to choose arity, aliases and conflict policy. Pass a literal argv vector to the intended process interface; shell command construction requires separate quoting rules.

References

  1. Tool behavior and example: Option Negated Name Pair Audit — tool.io

Similar or alternative tools

  • Long Option Assignment Joiner

    Format one literal long-option argv token under a restricted ASCII option-name grammar; returns one argument, not shell quoting.

  • Long Option Assignment Splitter

    Split one strict ASCII --long-name[=value] argv token at the first equals; no shell parsing or implicit next-token consumption.