Skip to content

Fix: make participant argument optional, analyze all if omitted (#7)#24

Open
AdityaGupta716 wants to merge 4 commits intoprecice:mainfrom
AdityaGupta716:issue-7-optional-participant
Open

Fix: make participant argument optional, analyze all if omitted (#7)#24
AdityaGupta716 wants to merge 4 commits intoprecice:mainfrom
AdityaGupta716:issue-7-optional-participant

Conversation

@AdityaGupta716
Copy link
Contributor

Fixes #7

Problem

Running precice-cli profiling analyze with no participant argument led to an
error instead of showing stats for all participants.

Fix

  • Made participant an optional positional argument (nargs="?", default=None)
  • If no participant is provided, analyzeCommand now loops over all participants
    and displays analysis for each one

Now both of these work correctly:

  • precice-cli profiling analyze <participant> — analyze a single participant
  • precice-cli profiling analyze — analyze all participants

@AdityaGupta716
Copy link
Contributor Author

AdityaGupta716 commented Feb 25, 2026

@fsimonis @IshaanDesai Plz review

@precice-bot
Copy link

This pull request has been mentioned on preCICE Forum on Discourse. There might be relevant details there:

https://precice.discourse.group/t/gsoc-2026-aditya-gupta/2773/1

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.

Analyze with optional participant argument

2 participants