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

Add --attribute-help flag #5185

Open
atomb opened this issue Mar 12, 2024 · 1 comment
Open

Add --attribute-help flag #5185

atomb opened this issue Mar 12, 2024 · 1 comment
Labels
kind: enhancement Enhancements, feature requests, etc. These are NOT bugs, but ways we can improve Dafny

Comments

@atomb
Copy link
Member

atomb commented Mar 12, 2024

Summary

It should be easy to get a list of what attributes Dafny supports and what each ones does.

Background and Motivation

The old-style options have an /attrHelp flag, and that text is available in Dafny already, so we should be able to access it with new-style options.

Proposed Feature

Add a --attribute-help flag to print help about all available attributes.

Alternatives

It's possible to use --boogie -attrHelp at the moment, but it's not obvious.

@atomb atomb added the kind: enhancement Enhancements, feature requests, etc. These are NOT bugs, but ways we can improve Dafny label Mar 12, 2024
@keyboardDrummer
Copy link
Member

keyboardDrummer commented Mar 20, 2024

The old-style options have an /attrHelp flag, and that text is available in Dafny already, so we should be able to access it with new-style options.

Because something is possible with the old CLI, does not mean it should be possible with the new one. The attributes are documented in the reference manual (here). Why would you want to be able to output a part of our reference manual using /attrHelp ? If you want that, then wouldn't it be more consistent to let the CLI to output the entire reference manual?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: enhancement Enhancements, feature requests, etc. These are NOT bugs, but ways we can improve Dafny
Projects
None yet
Development

No branches or pull requests

2 participants