Skip to content

Add --version and --help CLI flags to main.c #27

@felixx-sp

Description

@felixx-sp

Currently dmrcrack.exe always opens the GUI regardless of command-line arguments. This issue asks you to add two flags that print to the console and exit without opening the window:

  • --version → prints FSP.DMRCrack 0.3.2 (use DMRCRACK_VERSION from include/version.h)
  • --help → prints a one-line usage summary

Where to look: src/main.cWinMain. Check lpCmdLine (or use GetCommandLineW + CommandLineToArgvW) before calling CreateWindowEx. Use AllocConsole + printf since it's a GUI subsystem binary.

Good first issue — no CUDA knowledge required, just Win32 entry point basics.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions