@@ -845,10 +845,16 @@ def _install_contrib_package(name, verbose=0, prompt=True):
845845@click .option ('--install-all' , '--all' , '-a' , default = False , is_flag = True ,
846846 help = 'Install all non-open-source packages ' \
847847 'available and accept licenses without prompting' )
848+ @click .option ('--full' , 'ask_full' , default = False , is_flag = True ,
849+ help = 'Configure non-essential options (such as endpoint and solver).' )
848850@click .option ('--verbose' , '-v' , count = True ,
849851 help = 'Increase output verbosity (additive, up to 4 times)' )
850- def setup (install_all , verbose ):
851- """Setup optional Ocean packages and configuration file(s)."""
852+ def setup (install_all , ask_full , verbose ):
853+ """Setup optional Ocean packages and configuration file(s).
854+
855+ Equivalent to running `dwave install [--all]`, followed by
856+ `dwave config create [--full]`.
857+ """
852858
853859 contrib = get_contrib_packages ()
854860 packages = list (contrib )
@@ -873,4 +879,4 @@ def setup(install_all, verbose):
873879 _install_contrib_package (pkg , verbose = verbose , prompt = not install_all )
874880
875881 click .echo ("Creating the D-Wave configuration file." )
876- return _config_create (config_file = None , profile = None , ask_full = False )
882+ return _config_create (config_file = None , profile = None , ask_full = ask_full )
0 commit comments