Skip to content

Order of arguments good practise #3760

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

Merged
merged 3 commits into from
Jul 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions knowledge/guidelines.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ Good practices
the graph to avoid the conflicts without overrides and forces is the recommended approach.
- **Please, do not abuse 'tool_requires'**. Those are intended only for executables like ``cmake`` and ``ninja`` running in the "build"
context, not for libraries or library-like dependencies, that must use ``requires`` or ``test_requires``.
- Positional arguments when invoking Conan should be specified first, before any named argument. For example,
``conan install . -s="os=Windows"`` is correct, but ``conan install -s="os=Windows" .`` is not.
Likewise, it's recommended to use ``=`` instead of spaces between the name and value of named arguments.
This is to avoid some ambiguity scenarios when parsing the command line arguments.

Forbidden practices
-------------------
Expand Down