Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add boot -c flag to nekotools help #273

Merged
merged 1 commit into from
Mar 27, 2023
Merged

Conversation

tobil4sk
Copy link
Member

Closes #226.

nekotools boot -c should be preferred over nekotools boot since it avoids all the problems mentioned in #130. Also, a properly compiled executable allows setting custom rpath values, which fixes the library loading issues mentioned in #226. Perhaps the raw boot command should be deprecated and removed from the help menu?

It now looks like this:

Neko Tools v1.0 - (c)2005-2022 Haxe Foundation
Usage : nekotools [options]
 Options :
  server  : start a neko web server
  boot <file.n> : build a standalone executable
  boot -c <file.n> : build a standalone c program

@skial skial mentioned this pull request Mar 1, 2023
1 task
@Simn
Copy link
Member

Simn commented Mar 27, 2023

I don't understand what happens here, doesn't that first thing shadow the second thing?

@tobil4sk
Copy link
Member Author

The second entry overrides the first one. I've tested and both boot and boot -c still work properly. They are the same command, just needed a way to document the -c flag, and I didn't want to redo the argument parsing module for this so I just went with this hack. :P

@Simn
Copy link
Member

Simn commented Mar 27, 2023

Ah, well, if you say so!

@Simn Simn merged commit 846b6b3 into HaxeFoundation:master Mar 27, 2023
@tobil4sk tobil4sk deleted the doc-boot-c branch March 27, 2023 14:19
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.

nekotools boot result not standalone, requires ndll
2 participants