nimble
nimble copied to clipboard
nimble run does not pass command-line arguments to executable
When specifying command-line arguments after the nimble run
command-line, I expect those to be passed to the execute program but they are not:
INS mildred@faile:disputatio.nim/a$ nimble init a
Info: Package initialisation requires info which could not be inferred.
... Default values are shown in square brackets, press
... enter to use them.
Using "a" for new package name
Prompt: Your name? [Anonymous]
Answer:
Using "src" for new package source directory
Prompt: Package type?
... Library - provides functionality for other packages.
... Binary - produces an executable for the end-user.
... Hybrid - combination of library and binary
... For more information see https://goo.gl/cm2RX5
Select Cycle with 'Tab', 'Enter' when done
Answer: binary
Prompt: Initial version of package? [0.1.0]
Answer:
Prompt: Package description? [A new awesome nimble package]
Answer:
Prompt: Package License?
... This should ideally be a valid SPDX identifier. See https://spdx.org/licenses/.
Select Cycle with 'Tab', 'Enter' when done
Answer: MIT
Prompt: Lowest supported Nim version? [1.9.3]
Answer:
Success: Package a created successfully
INS mildred@faile:disputatio.nim/a$ cd a
INS mildred@faile:a/a$ printf 'import os\necho $commandLineParams()\n' > src/a.nim
INS mildred@faile:a/a$ nimble run a --help
Verifying dependencies for [email protected]
Building a/a using c backend
@[]
INS mildred@faile:a/a$ nim --version
Nim Compiler Version 1.9.3 [Linux: amd64]
Compiled at 2023-04-11
Copyright (c) 2006-2023 by Andreas Rumpf
active boot switches: -d:release
INS mildred@faile:a/a$ nimble --version
nimble v0.14.0 compiled at 2023-04-11 21:48:50
git hash: 7efb226ef908297e8791cade20d991784b4e8bfc
In the above session, the command-line arguments is empty @[]
while I expected the --help
flag to be passed.