ustwo / mastermind

Man in the middle testing
MIT License
385 stars 66 forks source link

Cannot load config using examples from configuration #40

Closed chodorowicz closed 8 years ago

chodorowicz commented 8 years ago

Hey! I'm trying to follow examples the docs and start mastermind with most basic config from examples, but I cannot load it. mastermind --config config.toml but I get The arguments used don't match any of the possible modes. Please check the help above I'm probably missing something obvious.

image


Mastermind Version: 1.0 beta 3 Operating System: OSX

arnau commented 8 years ago

The config.toml should have source-dir instead of source_dir. I'll review the documentation to catch where it is misspelled.

chodorowicz commented 8 years ago

It was here https://github.com/ustwo/mastermind/pull/42

But still, even with that change it was now working, I had to set --source-dir in CLI and also set --with-driver. Maybe it's worth adding to the docs too.

sudo mastermind --with-driver --source-dir ./rulesets --config config.toml

arnau commented 8 years ago

I'll have a closer look. It shouldn't be necessary to set any flag if the config file has the source-dir in place. Looks like a regression while merging config data and flags.

arnau commented 8 years ago

I fixed an issue when using --config with a file with the wrong path. Now it gives a clearer error message. See #37.

I'll keep looking into reproduce this exact error, so far no luck.

arnau commented 8 years ago

I'm unable to reproduce this issue :( I'll close it for now.