[#122] preset_grpc: Allow specify `--local` without value
DCO action / DCO (pull_request) Successful in 1m17s Details
Tests and linters / Lint (pull_request) Successful in 3m40s Details
Tests and linters / Tests (1.20) (pull_request) Successful in 3m45s Details
Tests and linters / Tests (1.21) (pull_request) Successful in 3m44s Details
Tests and linters / Tests with -race (pull_request) Successful in 4m7s Details

Now `--local` is flag, so it is possible to specify `--local`
instead of `--local True` or '--local False'.

Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
pull/122/head
Dmitrii Stepanov 2024-01-24 16:25:39 +03:00
parent 339e4e52ec
commit 4ff87f9bf6
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ parser.add_argument('--ignore-errors', help='Ignore preset errors', action='stor
parser.add_argument('--workers', help='Count of workers in preset. Max = 50, Default = 50', default=50)
parser.add_argument('--sleep', help='Time to sleep between containers creation and objects upload (in seconds), '
'Default = 8', default=8)
parser.add_argument('--local', help='Create containers that store data on provided endpoints. Warning: additional empty containers may be created.', default=False)
parser.add_argument('--local', help='Create containers that store data on provided endpoints. Warning: additional empty containers may be created.', action='store_true')
args: Namespace = parser.parse_args()
print(args)