Misleading commandline help message
la-magra opened this issue · 3 comments
la-magra commented
$ bundle exec database_consistency -h
Usage: database_consistency install - run installation
database_consistency [options]
-c, --config=FILE Use additional configuration file.
-g, --generate-todo Generate TODO file with every failing check disabled. You can pass existing configurations so the generated file will have only new failures.
-f, --autofixix Automatically fixes issues by adjusting the code or generating missing migrations.
-h, --help Prints this help.
$ bundle exec database_consistency -f
bundler: failed to load command: database_consistency (/home/***/.gem/ruby/3.1.3/bin/database_consistency)
/home/***/.gem/ruby/3.1.3/gems/database_consistency-1.5.1/bin/database_consistency:52:in `<top (required)>': missing argument: -f (OptionParser::MissingArgument)
...
$ bundle exec database_consistency --autofixix
bundler: failed to load command: database_consistency (/home/***/.gem/ruby/3.1.3/bin/database_consistency)
/home/***/.gem/ruby/3.1.3/gems/database_consistency-1.5.1/bin/database_consistency:52:in `<top (required)>': invalid option: --autofixix (OptionParser::InvalidOption)
Did you mean? autofix
...
probably due to
first parameter having two extra characters.djezzzl commented
djezzzl commented
Released in 1.5.2. Thank you again! Have a great day!
la-magra commented
Thank you, I wish you the same.