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

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>
This commit is contained in:
Dmitrii Stepanov 2024-01-24 16:25:39 +03:00
parent 339e4e52ec
commit 4ff87f9bf6

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('--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), ' parser.add_argument('--sleep', help='Time to sleep between containers creation and objects upload (in seconds), '
'Default = 8', default=8) '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() args: Namespace = parser.parse_args()
print(args) print(args)