Skip to content

Commit 7d020d1

Browse files
authored
feat: fix argument type for transfer tool (#253)
## Description <!-- What issue or task does this change relate to? --> ## What problem does this change solve? <!-- Describe if it's a bugfix, new feature, doc update, or breaking change --> ## What issue or task does this change relate to? <!-- link to Issue Number --> ## Additional notes ## <!-- Include any additional information, caveats, or considerations that the reviewer should be aware of. --> ***As a contributor to the Anemoi framework, please ensure that your changes include unit tests, updates to any affected dependencies and documentation, and have been tested in a parallel setting (i.e., with multiple GPUs). As a reviewer, you are also responsible for verifying these aspects and requesting changes if they are not adequately addressed. For guidelines about those please refer to https://anemoi.readthedocs.io/en/latest/*** By opening this pull request, I affirm that all authors agree to the [Contributor License Agreement.](https://github.com/ecmwf/codex/blob/main/Legal/contributor_license_agreement.md)
1 parent 48f2609 commit 7d020d1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/anemoi/utils/commands/transfer.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,15 @@ def add_arguments(self, command_parser: ArgumentParser) -> None:
4747
action="store_true",
4848
help="If the data is already on S3 it will not be uploaded, unless the remote file has a different size.",
4949
)
50-
command_parser.add_argument("--verbosity", default=1, help="The level of verbosity, by default 1.")
50+
command_parser.add_argument("--verbosity", type=int, default=1, help="The level of verbosity, by default 1.")
5151
command_parser.add_argument(
5252
"--progress", default=None, help="A callable that will be called with the number of files."
5353
)
5454
command_parser.add_argument(
55-
"--threads", default=1, help="The number of threads to use when uploading a directory, by default 1."
55+
"--threads",
56+
type=int,
57+
default=1,
58+
help="The number of threads to use when uploading a directory, by default 1.",
5659
)
5760

5861
def run(self, args: Namespace) -> None:

0 commit comments

Comments
 (0)