### Bug description

The following mistake was entirely my fault but I found the behavior slightly unexpected compared to standard command line interfaces and the error message made it difficult to immediately identify what the issue was. Running the following render command produces the below error.
```
$ quarto render --to html unvotes.ipynb
ERROR: The specified directory ('.') is not a Quarto project
```

I'm fine with the ordering of input vs args but it seems like swapping the order is an easy mistake to make and more helpful error message would be appreciated (e.g. invalid file path, `--to` does not exist, or something similar).

### 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://yihui.org/issue/#please-format-your-issue-correctly) so it is easier for us to read the bug report.
- [X] 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.
2022-08-26T15:06:55Z
rundel
enhancement
Future
open
Confusing error with quarto render when swapping input and args
https://github.com/quarto-dev/quarto-cli/issues/2146