summary refs log tree commit diff stats
path: root/drnim
diff options
context:
space:
mode:
authorNikolay Nikolov <nickysn@gmail.com>2023-11-15 16:10:10 +0200
committerGitHub <noreply@github.com>2023-11-15 15:10:10 +0100
commitd0cc02dfc439d14bfadd4e5ac3a7855fe8d8e417 (patch)
tree20790ee25e00b59465f2e50624664bbbcf618882 /drnim
parent57ffeafda016a9772f6548d462f8d9acdcad33bd (diff)
downloadNim-d0cc02dfc439d14bfadd4e5ac3a7855fe8d8e417.tar.gz
Added new command line option `--info:X` to nimsuggest for obtaining information. (#22940)
`--info:protocolVer` returns the highest nimsuggest protocol version
that is supported (currently, it's version 3).
`--info:nimVer` returns the Nim compiler version that nimsuggest uses
internally.

Note that you can obtain the Nim compiler version via `nimsuggest -v`,
but that requires parsing the output, which looks like this:

```
Nim Compiler Version 2.1.1 [Linux: amd64]
Compiled at 2023-11-14
Copyright (c) 2006-2023 by Andreas Rumpf

git hash: 47ddfeca5247dce992becd734d1ae44e621207b8
active boot switches: -d:release -d:danger --gc:markAndSweep
```

`--info:nimVer` will return just:

```
2.1.1
```
Diffstat (limited to 'drnim')
0 files changed, 0 insertions, 0 deletions