@@ -292,6 +292,7 @@ def _test_rstudio_creds(server: api.RStudioServer):
292292@cli .command (
293293 short_help = "Create an initial admin user to bootstrap a Connect instance." ,
294294 help = "Creates an initial admin user to bootstrap a Connect instance. Returns the provisionend API key." ,
295+ no_args_is_help = True ,
295296)
296297@click .option (
297298 "--server" ,
@@ -376,6 +377,7 @@ def bootstrap(
376377 "Specifying an existing nickname will cause its stored information to be replaced by what is given "
377378 "on the command line."
378379 ),
380+ no_args_is_help = True ,
379381)
380382@click .option ("--name" , "-n" , required = True , help = "The nickname of the Posit Connect server to deploy to." )
381383@click .option (
@@ -505,6 +507,7 @@ def list_servers(verbose):
505507 "API key is valid for authentication for that server. It may also be used to verify that the "
506508 "information stored as a nickname is still valid."
507509 ),
510+ no_args_is_help = True ,
508511)
509512@server_args
510513@cli_exception_handler
@@ -547,6 +550,7 @@ def details(name, server, api_key, insecure, cacert, verbose):
547550 "Remove the information about a Posit Connect server by nickname or URL. "
548551 "One of --name or --server is required."
549552 ),
553+ no_args_is_help = True ,
550554)
551555@click .option ("--name" , "-n" , help = "The nickname of the Posit Connect server to remove." )
552556@click .option ("--server" , "-s" , help = "The URL of the Posit Connect server to remove." )
@@ -602,6 +606,7 @@ def _get_names_to_check(file_or_directory):
602606 "information about it"
603607 "s deployments are saved on a per-server basis."
604608 ),
609+ no_args_is_help = True ,
605610)
606611@click .argument ("file" , type = click .Path (exists = True , dir_okay = True , file_okay = True ))
607612def info (file ):
@@ -724,6 +729,7 @@ def _warn_on_ignored_requirements(directory, requirements_file_name):
724729 "page. If the notebook is deployed as a static HTML page (--static), it cannot be scheduled or "
725730 "rerun on the Connect server."
726731 ),
732+ no_args_is_help = True ,
727733)
728734@server_args
729735@content_args
@@ -845,6 +851,7 @@ def deploy_notebook(
845851 'file. The specified file must either be named "manifest.json" or '
846852 'refer to a directory that contains a file named "manifest.json".'
847853 ),
854+ no_args_is_help = True ,
848855)
849856@server_args
850857@content_args
@@ -899,6 +906,7 @@ def deploy_manifest(
899906 "\n \n "
900907 "FILE_OR_DIRECTORY is the path to a single-file Quarto document or the directory containing a Quarto project."
901908 ),
909+ no_args_is_help = True ,
902910)
903911@server_args
904912@content_args
@@ -1021,6 +1029,7 @@ def deploy_quarto(
10211029 name = "html" ,
10221030 short_help = "Deploy html content to Posit Connect." ,
10231031 help = ("Deploy an html file, or directory of html files with entrypoint, to Posit Connect." ),
1032+ no_args_is_help = True ,
10241033)
10251034@server_args
10261035@content_args
@@ -1092,12 +1101,14 @@ def generate_deploy_python(app_mode, alias, min_version):
10921101 @deploy .command (
10931102 name = alias ,
10941103 short_help = "Deploy a {desc} to Posit Connect [v{version}+], Posit Cloud, or shinyapps.io." .format (
1095- desc = app_mode .desc (), version = min_version
1104+ desc = app_mode .desc (),
1105+ version = min_version ,
10961106 ),
10971107 help = (
10981108 "Deploy a {desc} module to Posit Connect, Posit Cloud, or shinyapps.io (if supported by the platform). "
10991109 'The "directory" argument must refer to an existing directory that contains the application code.'
11001110 ).format (desc = app_mode .desc ()),
1111+ no_args_is_help = True ,
11011112 )
11021113 @server_args
11031114 @content_args
@@ -1224,6 +1235,7 @@ def deploy_app(
12241235 name = "other-content" ,
12251236 short_help = "Describe deploying other content to Posit Connect." ,
12261237 help = "Show help on how to deploy other content to Posit Connect." ,
1238+ no_args_is_help = True ,
12271239)
12281240def deploy_help ():
12291241 text = (
0 commit comments