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

Should --only-trace should imply --log when using interaction? #50

Open
thoughtpolice opened this issue Jul 12, 2022 · 1 comment
Open

Comments

@thoughtpolice
Copy link
Contributor

Consider the DieHard example. If you run it normally, the counterexample is generated. Running it with --only-trace, it obviously succeeds, but simply exits with

specification: trace: success

Now, if you look at the options, this is obvious, since it says it only traces behaviors and turns off model checking. But when I was first using Spectacle, I actually typo'd -t and -l several times which confused me: why did this succeed? Ignoring that entirely though, -t is practically useless without -l because you literally can't see the traces without it. So I just always run with -tl most of the time until I want to check and just run it without either option (or I'm debugging.)

This is more of a UX question than anything: if we're just tracing without checks, should we always diagram the output traces? This will probably impact the Interaction API, of course...

@riz0id
Copy link
Collaborator

riz0id commented Jan 10, 2023

The CLI doesn't have a great way of doing implying options like GHC will with options or language extensions since the implementation is still naive. I agree its awkward however, I made some changes to the CLI in #55 which will warn users if --trace is flagged without --diagram until the CLI has been developed to the point where there is:

  • A canonical method for defining options that should imply other options.
  • Mirrored "negative" flags to disable options, similar to --no-* with GHC.

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

No branches or pull requests

2 participants