laurent-martin / ets-to-homeassistant

script to convert ETS5 project file to a YAML configuration file suitable for Home Assistant
Apache License 2.0
52 stars 12 forks source link

Update ets_to_hass - missing --addr argument #17

Closed mtt87 closed 6 months ago

mtt87 commented 6 months ago

Currently using --addr doesn't work.

./bin/ets_to_hass: unrecognized option `--addr'
/opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/getoptlong.rb:649:in `set_error': unrecognized option `--addr' (GetoptLong::InvalidOption)
    from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/getoptlong.rb:749:in `get'
    from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/getoptlong.rb:861:in `block in each'
    from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/getoptlong.rb:860:in `loop'
    from /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/getoptlong.rb:860:in `each'
    from ./bin/ets_to_hass:39:in `<main>'

I'm not a Ruby developer myself but I think I found the issue. I tested locally it works fine with this addition.