Skip to content

Fix -exportstrat stdout.<ext> handling#278

Merged
davexparker merged 1 commit into
prismmodelchecker:masterfrom
davexparker:strat-stdout
Apr 16, 2026
Merged

Fix -exportstrat stdout.<ext> handling#278
davexparker merged 1 commit into
prismmodelchecker:masterfrom
davexparker:strat-stdout

Conversation

@davexparker
Copy link
Copy Markdown
Member

Allow .ext to be detected when using -exportstrat stdout.ext. Previously it was ignored and a file called stdout.ext created.

Allow .ext to be detected when using -exportstrat stdout.ext.
Previously it was ignored and a file called stdout.ext created.
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates PRISM’s command-line parsing so -exportstrat stdout.<ext> is treated as “export to stdout” while still using <ext> to infer the default export type (e.g., tra, dot), instead of creating a file literally named stdout.<ext>.

Changes:

  • Split the -exportstrat target into basename + extension to infer export type from the extension.
  • Normalize stdout.<ext> to stdout for the output target so the export is routed to standard output.
  • Switch extension-based type detection from endsWith(...) to exact extension matching.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@davexparker davexparker merged commit e1650c0 into prismmodelchecker:master Apr 16, 2026
14 of 16 checks passed
@davexparker davexparker deleted the strat-stdout branch April 16, 2026 19:21
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.

2 participants