Skip to content

Conversation

@AbrilRBS
Copy link
Member

@AbrilRBS AbrilRBS commented Jun 5, 2024

Closes #3629

@AbrilRBS AbrilRBS requested a review from memsharded June 5, 2024 09:04
@czoido czoido added this to the 2.4.0 milestone Jun 5, 2024
Comment on lines 46 to 48
- Named arguments which receive a value should use ``=`` without spaces. For example, ``-r=conancenter`` is correct, but ``-r conancenter`` is not.
- 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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not fully sure. The -r conancenter does work, so maybe we want to reword a bit? I'd do:

  • Use just 1 item to define both good practices for CLI args, not 2 bullet items
  • Define the good practice without saying that the other is not correct (positive recommendation), just recommend one over the other (it can be said that there can be arg parsing errors if not in some cases)

@czoido czoido modified the milestones: 2.4.0, 2.5.0 Jun 5, 2024
@AbrilRBS AbrilRBS assigned AbrilRBS and czoido and unassigned AbrilRBS Jun 5, 2024
@AbrilRBS AbrilRBS requested a review from memsharded June 5, 2024 10:50
@czoido czoido merged commit 0852afb into conan-io:develop2 Jul 2, 2024
@AbrilRBS AbrilRBS deleted the rr/argument-order-good-practice branch July 2, 2024 11:28
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.

[bug] path argument no longer position independent for "conan lock create" in Conan 2.1.0

3 participants