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

Running binary with only the argument tla causes panic instead of giving warning to user. #55

Closed
danwt opened this issue Aug 13, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@danwt
Copy link
Contributor

danwt commented Aug 13, 2021

Bug:

Running binary ./modelator tla panics.

Expected:

./modelator --help gives

SUBCOMMANDS:
    apalache    Generate TLA+ traces using Apalache
    tla         Generate TLA+ test cases and parse TLA+ traces
    tlc         Generate TLA+ traces using TLC

so it is expected that a user will try to pass only tla arg.

Log:

thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', modelator/src/cli/mod.rs:29:17
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Additional info:

Tested on release in versions 0.2.0 and (06ed539eb) latest

@danwt danwt added the bug Something isn't working label Aug 13, 2021
@andrey-kuprianov
Copy link
Contributor

Fixed by e4a94f9; closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants