* Re: [Tarantool-patches] [PATCH 0/2] tarantoolctl --show-system
[not found] <cover.1568847349.git.v.shpilevoy@tarantool.org>
@ 2019-11-07 1:36 ` Alexander Turenko
0 siblings, 0 replies; only message in thread
From: Alexander Turenko @ 2019-11-07 1:36 UTC (permalink / raw)
To: Vladislav Shpilevoy; +Cc: tarantool-patches, tarantool-patches
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)
>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-11-07 1:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <cover.1568847349.git.v.shpilevoy@tarantool.org>
2019-11-07 1:36 ` [Tarantool-patches] [PATCH 0/2] tarantoolctl --show-system Alexander Turenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox