--dir argument required for completions
Author: DialgaCreated Jul 10, 2026Updated Sep 9, 2026
LabelsStale
Describe the bug
generating completions requires the --dir argument.
To Reproduce
$ badger completion bash --dir /tmp
Listening for /debug HTTP requests at port: 8080
Port busy. Trying another one...
Listening for /debug HTTP requests at port: 8081
jemalloc enabled: false
Using Go memory
...
# ex: ts=4 sw=4 et filetype=sh
Num Allocated Bytes at program end: 0 BExpected behavior
Generating completions should not require the --dir argument to be passed. But even if a directory is passed, debug messages are included in the completion output.
Environment
- OS: Arch Linux
- Language: English
- Version 4.9.4
Additional context
Source: dgraph-io/badger