Skip to content

On Linux 3.9.7, Error parsing arguments: FormatException: Could not find an option named "--help" #188

Closed

Description

@fprimex

The --help flag isn't recognized.

~/Downloads/or$ ./openrom-core --help
Error parsing arguments: FormatException: Could not find an option named "--help".

~/Downloads/or$ ./openrom-core --version
OpenROM v3.9.7

Activity

  1. ClausValcaTD commented on Nov 2, 2026

    @ClausValcaTD
    Member

    Fixed by #191 (merged into main as c6abb9c), and released in v3.9.8.

    The CLI now defines a real --help / -h flag:

    $ openrom-core --help
    OpenROM CLI — Universal ROM Compression Suite
    
    Usage: openrom-core [options]
    
    -i, --input             single input ROM file
    ...
    -h, --help              show this help message
    -v, --version           show version
    

    Along the way:

    • Running openrom-core with no arguments now prints the full usage instead of a one-liner.
    • An unknown option still exits 2, but now prints the usage to stderr next to the error.
    • --help / --version exit before loading plugins, so their output stays clean.
    • Added regression tests in core/test/cli_help_test.dart.

    Thanks for the report, @fprimex!


    This comment was created by an AI agent (OpenHands) on behalf of the user.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions