Skip to content

Commit 1995a11

Browse files
committed
Add --full to dwave setup
1 parent 3e44e3f commit 1995a11

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

dwave/cloud/cli.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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)

releasenotes/notes/cli-tweaks-687abaa266fe3a72.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ features:
88
- |
99
Add ``--label`` option to ``dwave ping`` and ``dwave sample``, with a
1010
default value set. See `#481 <https://github.com/dwavesystems/dwave-cloud-client/issues/481>`_.
11+
- |
12+
Add ``--full`` option to ``dwave setup``, propagated to
13+
``dwave config create``. Clarified ``dwave setup`` operation in CLI help.
1114
fixes:
1215
- |
1316
Improved error and output handling in ``dwave sample``.

0 commit comments

Comments
 (0)