Skip to content

[DOCS] Audit and ensure all args listed in $(salt --help) will match with $(man 1 salt) #60677

Closed as not planned

Description

@ScriptAutomate

Description

This is created as a follow-up to #60629

Args are missing and/or have differing help description documentation between:

  • salt/utils/parsers.py
  • doc/ref/cli/salt.rst

An audit needs to be done to see what is missing and needs to be added to doc/ref/cli/salt.rst.

Suggested Fix

Audit and update the docs.

After updating, new issue(s) should be created for next steps depending on outcome:

  • If audit concludes they are meant to mirror each other, then automation should be created to help sync what they contain.
  • If they are meant to differ, then a different plan can come into play.

Type of documentation

  • Salt documentation
  • Salt modules
  • Man pages (which get autogenerated from the docs, such as salt.1 and salt.7)

Location or format of documentation

  • salt --help (is salt/utils/parsers.py output)
  • man 1 salt or man 7 salt (is rendered doc/man/* docs, which are generated by Sphinx, converting source docs such as doc/ref/cli/salt.rst for salt.1)
  • Rendered HTML of doc/ref/cli/salt.rst

Additional context
Add any other context or screenshots about the feature request here.

Activity

  1. added
    documentation
    on Aug 5, 2021
  2. added this to the Approved milestone on Aug 5, 2021
  3. added
    severity-medium
    and removed on Feb 7, 2022
  4. OrangeDog commented on Sep 27, 2022

    @OrangeDog
    Contributor

    Is it possible to also generate the man pages / online docs from the parsers code?

  5. barbaricyawps commented on Feb 13, 2023

    @barbaricyawps
    Contributor

    We received a complaint about missing documentation in the man pages (linked by OrangeDog above). I'm going to close that related issue as a duplicate, but I want to note the problem here:

    Salt's --preview-target option is not listed in the man page

    It's a small thing, but this extremely-useful option isn't documented in salt's man page. I wished for something like it for a long time, and didn't realize until this morning that it's already there, and has been for five years (added in 49120b6 by @cachedout ).

    (it does appear in the --help output, along with a number of other missing options. I'm not sure why the discrepancy between the two)

  6. removed their assignment
    on Apr 10, 2023
  7. dwoz commented on Oct 15, 2026

    @dwoz
    Contributor

    Thanks for the original report. This issue has been open for more than three years without recent activity and carries a severity label below severity-high. As part of a backlog cleanup, we're closing older low- and medium-severity issues so triage can focus on reports against currently supported releases.

    Closing isn't a judgement that the problem wasn't real — only that the codebase has moved through several releases since this was filed, and much of the surrounding code has changed.

    If you — or anyone else — can still reproduce this on the 3008.x LTS release, please leave a comment with a reproduction and a maintainer will reopen. The original reporter can also reopen directly.

  8. peterupton commented on Oct 16, 2026

    @peterupton

    The mismatch remains in 3008.x: salt/utils/parsers.py and salt --help expose --preview-target, but doc/ref/cli/salt.rst and the generated salt(1) man page still omit it. The proposed CLI documentation audit and synchronization mechanism was not implemented.

  9. dwoz commented on Oct 17, 2026

    @dwoz
    Contributor

    Reopening — there is an open PR tracking a fix for this: #69553.

  10. reopened this on Oct 17, 2026
  11. dwoz commented on Oct 28, 2026

    @dwoz
    Contributor

    Closing — consolidated into #70585. The checkbox for this item is in the appropriate theme section of that tracker. Please pick up the sub-item there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationseverity-mediumtime-estimate-long-term

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions