main: introduce new CLI options for config module
There are two new options introduced in Tarantool CLI:
* --name (-n) to specify instance name to be started. The option can be
omitted in case TT_INSTANCE_NAME environment variable is set.
* --config (-c) to specify the path to the config file. If the option
is not set the value of TT_CONFIG environment variable is considered.
Closes #8613
Co-authored-by:
Sergey Bronnikov <sergeyb@tarantool.org>
@TarantoolBot document
Title: introduce new CLI options for conf module
There are two new options introduced in Tarantool CLI:
* --name (-n) to specify instance name to be started. The option can be
omitted in case TT_INSTANCE_NAME environment variable is set.
* --config (-c) to specify the path to the config file. If the option
is not set the value of TT_CONFIG environment variable is considered.
Showing
- changelogs/unreleased/gh-8613-new-cli-options.md 3 additions, 0 deletionschangelogs/unreleased/gh-8613-new-cli-options.md
- doc/man/tarantool.pod 8 additions, 0 deletionsdoc/man/tarantool.pod
- src/lua/init.c 11 additions, 3 deletionssrc/lua/init.c
- src/lua/init.h 10 additions, 2 deletionssrc/lua/init.h
- src/main.cc 36 additions, 5 deletionssrc/main.cc
- test/app-luatest/gh_8613_centralized_config_options_test.lua 151 additions, 0 deletionstest/app-luatest/gh_8613_centralized_config_options_test.lua
- test/app-luatest/gh_8613_new_cli_behaviour_test.lua 1 addition, 0 deletionstest/app-luatest/gh_8613_new_cli_behaviour_test.lua
- test/box-py/args.result 12 additions, 0 deletionstest/box-py/args.result
Loading
Please register or sign in to comment