@@ -50,7 +50,15 @@ class OrderedGroup(click.Group):
5050 "-t" , "--token" , envvar = "QFIELDCLOUD_TOKEN" , type = str , help = "Session token."
5151)
5252@click .option (
53- "--json/--human" , "format_json" , help = "Output the result as newline formatted json."
53+ "--json/--human" ,
54+ "format_json" ,
55+ help = "Output the result as newline formatted json. Default: False" ,
56+ )
57+ @click .option (
58+ "--verify-ssl/--no-verify-ssl" ,
59+ "verify_ssl" ,
60+ default = True ,
61+ help = "Verify SSL. Default: True" ,
5462)
5563@click .pass_context
5664def cli (
@@ -60,6 +68,7 @@ def cli(
6068 password : str ,
6169 token : str ,
6270 format_json : bool ,
71+ verify_ssl : bool ,
6372):
6473 """The official QFieldCloud CLI tool.
6574
@@ -70,7 +79,7 @@ def cli(
7079 qfieldcloud-cli -u user -p pass -U https://localhost/api/v1/ list-projects
7180 """
7281 ctx .ensure_object (dict )
73- ctx .obj ["client" ] = sdk .Client (url )
82+ ctx .obj ["client" ] = sdk .Client (url , verify_ssl )
7483 ctx .obj ["format_json" ] = format_json
7584 ctx .obj ["token" ] = token
7685
@@ -105,7 +114,7 @@ def login(ctx, username, password) -> None:
105114@click .option (
106115 "--include-public/--no-public" ,
107116 default = False ,
108- help = "Includes the public project in the list." ,
117+ help = "Includes the public project in the list. Default: False " ,
109118)
110119@click .pass_context
111120def list_projects (ctx , username , include_public ):
@@ -153,7 +162,7 @@ def list_files(ctx, project_id):
153162)
154163@click .option (
155164 "--exit-on-error/--no-exit-on-error" ,
156- help = "If any project file download fails stop downloading the rest." ,
165+ help = "If any project file download fails stop downloading the rest. Default: False " ,
157166)
158167@click .pass_context
159168def download_files (ctx , project_id , local_dir , subdir , exit_on_error ):
0 commit comments