Skip to content

Commit d077233

Browse files
committed
update docs
1 parent 561de2f commit d077233

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

docs.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,11 @@ $ seml configure [OPTIONS]
162162

163163
**Options**:
164164

165+
* `--host TEXT`: The host of the MongoDB server.
166+
* `--port INTEGER`: The port of the MongoDB server.
167+
* `--database TEXT`: The name of the MongoDB database to use.
168+
* `--username TEXT`: The username for the MongoDB server.
169+
* `--password TEXT`: The password for the MongoDB server.
165170
* `-sf, --ssh-forward`: Configure SSH forwarding settings for MongoDB.
166171
* `--help`: Show this message and exit.
167172

src/seml/__main__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
P = ParamSpec('P')
2626
R = TypeVar('R')
2727

28+
_DOCS = bool(os.environ.get('_SEML_DOCS', False))
29+
2830

2931
# numexpr will log unnecessary info we don't want in our CLI
3032
logging.getLogger('numexpr').setLevel(logging.ERROR)
@@ -105,7 +107,7 @@ def first_argument_completer():
105107
# Note that this is not 100% the correct chaining autocompletition
106108
# but it is significantly better than nothing. Compared to the default
107109
# click chaining we greedly split the arguments by any command.
108-
chain=AUTOCOMPLETING,
110+
chain=_DOCS or AUTOCOMPLETING,
109111
)
110112
YesAnnotation = Annotated[
111113
bool,

0 commit comments

Comments
 (0)