[Tarantool-patches] [PATCH] app/argparse: expect no value for a boolean option

Konstantin Osipov kostja.osipov at gmail.com
Wed Nov 13 07:33:59 MSK 2019


* Vladislav Shpilevoy <v.shpilevoy at tarantool.org> [19/11/13 07:15]:
> >>> As I see the first and the second variants are used across tarantool's
> >>> built-in Lua code. You are right, third one, which I personally prefer,
> >>> is not used within the project.
> >>
> >> There is no options. The first is the only standard in our code. If the
> >> second one is used somewhere, then it is incorrect, or is a third-party
> >> library with own code style.
> > 
> > I see no mentions about this (at least there is nothing about this in
> > our Lua Style Guide on the website) as well as I see no dominant style
> > across our Lua code.
> > 
> > What is the source of your information?
> > 
> 
> I remember, that I tried once to use a not aligned multiline 'if' and
> was said/emailed by you, or Roman T., or Vladimir D., or by Kostja O.,
> that in Lua we need to stick to the same rules as in C about alignment.

there is lua coding style that was added by Eugene. I believe it
is even online in the docs:

https://www.tarantool.io/en/doc/1.10/dev_guide/lua_style_guide/

The code should stick to it.

-- 
Konstantin Osipov, Moscow, Russia


More information about the Tarantool-patches mailing list