Skip to content

Beta 5 help output places --help in the middle of arguments vs. end #2595

Closed

Description

@ptr727

In Beta 5 help is rendered is in the middle of arguments.
In Beta 4, and is typically expected, help is at the end of all arguments.

In this example the options rendered at the end, e.g. --logfile are created using Recursive = true, used to be global in Beta 4.

Beta 4:

> PlexCleaner process --help
Description:
  Process media files

Usage:
  PlexCleaner process [options]

Options:
  --settingsfile <settingsfile> (REQUIRED)  Path to settings file
  --mediafiles <mediafiles> (REQUIRED)      Path to media file or folder
  --parallel                                Enable parallel file processing
  --threadcount <threadcount>               Number of threads for parallel file processing
  --quickscan                               Scan only part of the file
  --resultsfile <resultsfile>               Path to results file
  --testsnippets                            Create short media file clips
  --logfile <logfile>                       Path to log file
  --logappend                               Append to existing log file
  --logwarning                              Log warnings and errors only
  --debug                                   Wait for debugger to attach
  -?, -h, --help                            Show help and usage information

Beta 5:

> PlexCleaner.exe process --help                                                                                                                                               
Description:
  Process media files

Usage:
  PlexCleaner process [options]

Options:
  --settingsfile (REQUIRED)  Path to settings file
  --mediafiles (REQUIRED)    Path to media file or folder
  --parallel                 Enable parallel file processing
  --threadcount              Number of threads for parallel file processing
  --quickscan                Scan only part of the file
  --resultsfile              Path to results file
  --testsnippets             Create short media file clips
  -?, -h, --help             Show help and usage information
  --logfile                  Path to log file
  --logappend                Append to existing log file
  --logwarning               Log warnings and errors only
  --debug                    Wait for debugger to attach

-?, -h, --help should be first or last, --version is missing.

Activity

  1. elgonzo commented on Jun 24, 2025

    @elgonzo
    Contributor

    FYI:

    --version is missing.

    --version is an option on the root command, not on sub commands (unless you tinker around by manually creating a --version option). You show help of a sub command "process", hence why there is no --version option shown.

  2. self-assigned this
    on Aug 6, 2025
  3. added this to the 2.0.0-beta7 milestone on Aug 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions