Skip to content

Add CLI help and version flags#32

Open
vincere-mori wants to merge 2 commits into
FSP-Labs:masterfrom
vincere-mori:cli-help-version-flags
Open

Add CLI help and version flags#32
vincere-mori wants to merge 2 commits into
FSP-Labs:masterfrom
vincere-mori:cli-help-version-flags

Conversation

@vincere-mori
Copy link
Copy Markdown

Fixes #27

Adds early handling for --help\ and --version\ before the GUI starts. The version output uses \DMRCRACK_VERSION\ from \include/version.h.

Validation:

  • \git diff --check\

I could not run the Windows/CUDA build locally because this machine does not have the Visual Studio/CUDA toolchain required by \�uild.bat.

@felixx-sp
Copy link
Copy Markdown
Contributor

Thanks for the PR!

One thing to fix before it can build: <shellapi.h> needs <windows.h> to be included first. It uses types like LPWSTR, HRESULT, and DECLARE_HANDLE that aren't defined yet at that point. Move <windows.h> to the top:

#include <windows.h>
#include <shellapi.h>
#include <stdio.h>
#include <wchar.h>

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

3 participants