[Tarantool-patches] [PATCH 0/2] tarantoolctl --show-system
Alexander Turenko
alexander.turenko at tarantool.org
Thu Nov 7 04:36:00 MSK 2019
This patchset formally fixes the issue, however I prefer to use the
following syntax:
$ tarantoolctl cat --show-system 00000000000000000000.snap
rather then one of the following
$ tarantoolctl cat --show-system true 00000000000000000000.snap
$ tarantoolctl cat --show-system 1 00000000000000000000.snap
$ tarantoolctl cat --show-system=true 00000000000000000000.snap
$ tarantoolctl cat --show-system=1 00000000000000000000.snap
I reopened the issue and will prepare the patch soon.
WBR, Alexander Turenko.
On Thu, Sep 19, 2019 at 01:00:29AM +0200, Vladislav Shpilevoy wrote:
> The patchset fixes incorrect handling of flag-parameters in tarantoolctl and its
> module - argparse.
>
> The only flag parameter now is '--show-system'. And an attempt to specify it
> appeared to be quite non-trivial task. It was not possible to set any value for
> this parameter, and it was showing weird error messages. This was because of how
> argparse module, used by tarantoolctl to parse arguments, stored parameters not
> having a value, and how checked boolean parameters.
>
> Branch: http://github.com/tarantool/tarantool/tree/gerold103/gh-4076-tarantoolctl-show-system
> Issue: https://github.com/tarantool/tarantool/issues/4076
>
> Vladislav Shpilevoy (2):
> app: fix boolean handling in argparse module
> app: fix error messages for not specified parameters in argparse
>
> src/lua/argparse.lua | 37 ++++++++++-------
> test/app/argparse.result | 84 ++++++++++++++++++++++++++++++++++++--
> test/app/argparse.test.lua | 32 +++++++++++++++
> 3 files changed, 135 insertions(+), 18 deletions(-)
>
> --
> 2.20.1 (Apple Git-117)
>
More information about the Tarantool-patches
mailing list