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

conan profile detect --nonexistent #15933

Merged

Conversation

memsharded
Copy link
Member

@memsharded memsharded commented Mar 22, 2024

Changelog: Feature: Add --exist-ok argument to conan profile detect to not fail if the profile already exists, without overwriting it.
Docs: Omit

Close #15902

@memsharded memsharded added this to the 2.3.0 milestone Mar 22, 2024
@@ -58,12 +58,18 @@ def profile_detect(conan_api, parser, subparser, *args):
"""
subparser.add_argument("--name", help="Profile name, 'default' if not specified")
subparser.add_argument("-f", "--force", action='store_true', help="Overwrite if exists")
subparser.add_argument("-n", "--nonexistent", action='store_true',
Copy link
Member Author

Choose a reason for hiding this comment

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

´`--exist-ok``

@czoido czoido merged commit f75d15a into conan-io:develop2 Mar 27, 2024
2 checks passed
@memsharded memsharded deleted the feature/profile_detect_nonexisting branch March 27, 2024 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: ux No changes to core business logic type: feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feature] Ability to run conan profile detect w/o error and w/o overwriting when the profile already exists
2 participants