Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(docs): fix wrong arguments for cargo make run given in CONTRIBUTING.md #819

Merged
merged 1 commit into from
Oct 31, 2021
Merged

fix(docs): fix wrong arguments for cargo make run given in CONTRIBUTING.md #819

merged 1 commit into from
Oct 31, 2021

Conversation

ken-matsui
Copy link
Contributor

This PR brings a fix for arguments of cargo make run command in CONTRIBUTING.md.

When I tried the command before this change, I got the error below:

$ cargo make run -- -l strider
[cargo-make] ...
...

    Finished dev [unoptimized + debuginfo] target(s) in 0.09s
     Running `target/debug/zellij --data-dir /tmp/zellij-org/zellij/target/dev-data/ -- -l strider`
error: Found argument '-l' which wasn't expected, or isn't valid in this context

USAGE:
    zellij --data-dir <data-dir>

For more information try --help
[cargo-make] ERROR - Error while executing command, exit code: 1
[cargo-make] WARN - Build Failed.

This is because cargo make run just passes all subsequent arguments to zellij binary. Therefore, I suggest that -- argument be removed from the example shown in CONTRIBUTING.md. The result for the change I brought is shown below.

$ cargo make run -l strider
[cargo-make] ...
...

    Finished dev [unoptimized + debuginfo] target(s) in 0.09s
     Running `target/debug/zellij --data-dir /tmp/zellij-org/zellij/target/dev-data/ -l strider`
Bye from Zellij!

@jaeheonji
Copy link
Member

jaeheonji commented Oct 31, 2021

I could find a history of recent cargo-make updates.

Good find :)

@ken-matsui
Copy link
Contributor Author

ken-matsui commented Oct 31, 2021

Great, thanks. I did not realize cargo-make has been recently released with breaking changes ;)

@a-kenji
Copy link
Contributor

a-kenji commented Oct 31, 2021

Thank you! Sorry you had to be the one figuring it out.

@a-kenji a-kenji merged commit b61489c into zellij-org:main Oct 31, 2021
@ken-matsui ken-matsui deleted the fix-args-for-cargo-make-run-on-conrtibuting-md branch November 1, 2021 14:23
imsnif added a commit that referenced this pull request Nov 8, 2021
* Half-page scroll actions #794

* fix(performance): do not hang when resizing large line wraps (#814)

* fix(performance): do not hang when resizing large line wraps

* style(fmt): make rustfmt happy

* style(clippy): make clippy happy

* docs(changelog): scroll fix

* fix(compatibility): home and end key fix (#815)

* fix(compatibility): handle home/end keys properly from terminfo

* style(fmt): make rustfmt happy

* style(fmt): remove unused import

* docs(changelog): home end key fix

* docs(changelog): fix link

* fix(typo): Correct typo from `occured` to `occurred` (#821)

* docs(changelog): fix a typo

* fix(docs): fix wrong arguments for `cargo make run` given in CONTRIBUTING.md (#819)

* docs(changelog): update `cargo-make` for `v0.35.3`

* fix(warning): Fix an unused import warning of std::fs on macos (#820)

* docs(changelog): fix unused import on darwin

* add: `WriteChars` action (#825)

* Behaves like the `Write` action, but one can specify
  strings themselves instead of their bytecodes.

  Usage:

  WriteChars: "cargo make test",

* docs(changelog): Add `WriteChars` action

* fix(docs): Fix a typo and some grammatical errors in bug_report.md (#826)

* docs(changelog): fix typo bug_report template

* add: `rust-version` (msrv) field to `Cargo.toml` (#828)

* specifies the minimum version the package can be compiled with,
  may be ignored with `--ignore-rust-version` option

  ref: https://doc.rust-lang.org/nightly/cargo/reference/manifest.html#the-rust-version-field

* docs(changelog): add `rust-version` to `Cargo.toml`

* fix(unix): forkpty => openpty (#830)

* fix(unix): forkpty => openpty

* style(fmt): make rustfmt happy

* docs(changelog): forkpty => openpty

* Fix: move `colors_transform` to `colorsys` (#832)

* `colors_transform` is deprecated and superceded by `colorsys`

  ref: https://crates.io/crates/colors-transform

* docs(changelog): `colors_transform` to `colorsys`

* feat(ui): add right-click support to plugins

* chore(docs): update changelog

* chore(warnings): remove unused imports (#833)

* rename var sroll_rows and review snapshots

* style(fmt): make rustfmt happy

Co-authored-by: Aram Drevekenin <aram@poor.dev>
Co-authored-by: Ken Matsui <26405363+ken-matsui@users.noreply.github.com>
Co-authored-by: a-kenji <aks.kenji@protonmail.com>
Co-authored-by: Tw <tw19881113@gmail.com>
Co-authored-by: Brooks Rady <b.j.rady@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants