Skip to content

Commit

Permalink
add 'system.client_version.as_value' command
Browse files Browse the repository at this point in the history
  • Loading branch information
pyroscope committed Jul 1, 2018
1 parent c76fd67 commit 486cfc9
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions docs/include-cmd-system.rst
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,31 @@ Commands related to the operating system and the XMLRPC API.
The client and library versions are currently tightly coupled, while ``system.api_version``
is incremented whenever changes are made to the XMLRPC API.


system.client_version.as_value

.. rubric:: *rTorrent-PS 1.1+ only*

.. code-block:: ini
system.client_version.as_value ≫ value ‹Mmmpp version decimal›
Returns the same information as :term:`system.client_version`, but instead of
a dotted string you get an integer number that can be easily compared in version checks.

:term:`system.has` should be preferred though to write configuration that
works across some client version range.

.. rubric:: Example

.. code-block:: console
$ rtxmlrpc --repr system.client_version.as_value
906
$ rtxmlrpc --repr system.client_version
'0.9.6'
system.colors.enabled
system.colors.max
system.colors.rgb
Expand Down

0 comments on commit 486cfc9

Please sign in to comment.