Skip to content

Commit

Permalink
improving docs for darwin exports (#382)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fl4m3Ph03n1x committed Apr 5, 2022
1 parent d1b8f07 commit 948d967
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
8 changes: 4 additions & 4 deletions darwin/cli_functions.py
Expand Up @@ -257,7 +257,7 @@ def dataset_report(dataset_slug: str, granularity: str) -> None:
dataset_slug: str
The dataset's slug.
granularity: str
Granualarity of the report, can be 'day', 'week' or 'month'.
Granularity of the report, can be 'day', 'week' or 'month'.
"""
client: Client = _load_client(offline=True)
try:
Expand Down Expand Up @@ -534,7 +534,7 @@ def upload_data(
preserve_folders : bool
Specify whether or not to preserve folder paths when uploading.
verbose : bool
Specify whther to have full traces print when uploading files or not.
Specify whether to have full traces print when uploading files or not.
"""
client: Client = _load_client()
try:
Expand Down Expand Up @@ -917,7 +917,7 @@ def post_comment(
dataset_slug: str
The slug of the dataset the item belongs to.
filename: str
The filename to receive the commment.
The filename to receive the comment.
text: str
The comment.
x: float, default: 1
Expand Down Expand Up @@ -1000,7 +1000,7 @@ def print_new_version_info(client: Optional[Client] = None) -> None:
Parameters
----------
client: Optional[Client]
The client containing information aboue the new verison. Defaults to None.
The client containing information about the new version. Defaults to None.
"""
if not client or not client.newer_darwin_version:
return
Expand Down
10 changes: 9 additions & 1 deletion darwin/options.py
Expand Up @@ -110,7 +110,15 @@ def __init__(self):
parser_export = dataset_action.add_parser("export", help="Export a version of a dataset.")
parser_export.add_argument("dataset", type=str, help="Remote dataset name to export.")
parser_export.add_argument("name", type=str, help="Name with with the version gets tagged.")
parser_export.add_argument("annotation_class", type=str, nargs="?", help="List of class filters.")
parser_export.add_argument(
"annotation_class",
type=str,
nargs="?",
help=(
"List of annotation class ids. If present, it will only include items that have"
" annotations with a class whose id matches."
),
)
parser_export.add_argument(
"--include-authorship",
default=False,
Expand Down

0 comments on commit 948d967

Please sign in to comment.