This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nrfutil application version string inconsistent with help

In implementing the --application-version-string with nrfutil I found the help was inconsistent with the application.

The help for this option is:

Fullscreen
1
2
3
4
--application-version-string TEXT
The application version string, e.g.
"2.7.31". Will be converted to an integer,
e.g. 207031.
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

In the example 2.7.31 is to be converted to 207031, but it is actually converted to 20731.

Even stranger, when I try 2.7.131, the version number output is 20831. So you can see the the 7 part is added to the one hundred of the following part.

Is this a bug or just incorrect documentation?