DX: When restoring a site and backup path have whitespace in it, it throws an error
Open
bug
- Dominant language
- Python
- Stars
- 1.7k
- Forks
- 1.4k
- PR merge metrics
- No merged PRs in 30d
Description
```
different-benches/version-15/apps took 8s
❯ bench restore ~/Documents/Site Backup/20260217_010003-my_site_ch-database.sql
Usage: bench restore [OPTIONS] SQL_FILE_PATH
Try 'bench restore --help' for help.
Error: Got unexpected extra argument (Backup/20260217_010003-my_site_ch-database.sql)
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the failure with the `bench restore` command and a SQL file path containing spaces. Trace the command's argument parsing, then verify that the complete path is accepted as one `SQL_FILE_PATH` argument and that the restore proceeds.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100