chore(cli/help): mention the need for a second -- in tauri dev (#8388)

* chore(cli/help): mention the need for a second `--` in `tauri dev`

ref: https://github.com/tauri-apps/tauri/issues/8382#issuecomment-1854016310

* add example to clarify [skip ci]

---------

Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
This commit is contained in:
Amr Bashir 2023-12-14 14:20:52 +02:00 committed by GitHub
parent f9c97b7e5b
commit c1bc4d2948
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -53,7 +53,7 @@ pub struct Options {
/// JSON string or path to JSON file to merge with tauri.conf.json
#[clap(short, long)]
pub config: Option<String>,
/// Command line arguments passed to the runner
/// Command line arguments passed to the runner. Use `--` to explicitly mark the start of the arguments.
pub args: Vec<String>,
/// Skip prompting for values
#[clap(long)]

View File

@ -56,7 +56,9 @@ pub struct Options {
/// Run the code in release mode
#[clap(long = "release")]
pub release_mode: bool,
/// Command line arguments passed to the runner. Arguments after `--` are passed to the application.
/// Command line arguments passed to the runner.
/// Use `--` to explicitly mark the start of the arguments. Arguments after a second `--` are passed to the application
/// e.g. `tauri dev -- [runnerArgs] -- [appArgs]`.
pub args: Vec<String>,
/// Disable the file watcher
#[clap(long)]