### Bug description

When rendering a qmd file from the command line the resources folder is named after the qmd file, rather than the html output. This makes it impossible to parameterise output file names.

|type|expected|actual|
|---|---|---|
|source|test.qmd|test.qmd|
|resources|test_1_files|test_files|
|output|test_1.html|test_1.html|

Render from the command line (Ubuntu 20.04):

`quarto render test.qmd --output test_1.html`

````md
---
title: "param test"
format: html
editor: source
params:
  x: 10
  y: 0.5
---

## Quarto

Quarto enables you to weave together content and executable code into a finished document. To learn more about Quarto see <https://quarto.org>.

## Running Code

* The param x is `r params$x`
* The param y is `r params$y`


```{r}
plot(rnorm(n = params$x,
           mean = params$y))
```

````

### Checklist

- [X] Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
- [X] Please [format your issue](https://quarto.org/bug-reports.html#formatting-make-githubs-markdown-work-for-us) so it is easier for us to read the bug report.
- [ ] Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- [X] Please document the operating system you're running. If on Linux, please provide the specific distribution.
cscheid
2022-09-08T17:35:31Z
mikerspencer
bug
v1.5
open
Render to a new file name stores resources in directory with name of qmd file
https://github.com/quarto-dev/quarto-cli/issues/2363