Commandline arguments for --run set in comment#135
Commandline arguments for --run set in comment#135onelivesleft wants to merge 4 commits intopragmagic:masterfrom
Conversation
… copy+paste & move line being broken.
|
two things which sprung to my mind:
|
|
Yeah, the exact syntax is just placeholder. I did think to use something more generic, but it's not clear what the generalised keyword(s) should be. If you ditch the So, I think a generalised directive, that could be picked up by any IDE or editor plugin, would be the way to go, if it can be easily recognized as such by the person reading the code. I do think that it's much more usable to have it just be a comment in code rather than a setting somewhere else you have to go twiddle every time you need to test something. OTOH I may be biased, coming off the back of a package which parses the command line, which I obviously needed to mess around with a lot. |
|
Oh, just groking your last point, I'm not sure if your example is off-target or you're not quite getting the purpose: this isn't for specifying arguments for the compiler; it's for specifying arguments to the program being written, when it's run. So |
|
oh, my bad, that was a misunderstanding on my side |
Provides feature #134
If the file being run contains a comment of the form:
# vscode-nim arguments: <args>then when the
Nim: Run selected Nim fileaction is used,<args>will be added to the command line received by the binary.