1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-03 11:52:20 +01:00

Don't try compat parsing for "esphome version" (#1966)

This commit is contained in:
Oxan van Leeuwen
2021-07-06 00:17:36 +02:00
committed by GitHub
parent 062cedc200
commit fd4b7d4588

View File

@@ -516,7 +516,7 @@ def parse_args(argv):
deprecated_argv_suggestion = None
if ["dashboard", "config"] == argv[1:3]:
if ["dashboard", "config"] == argv[1:3] or ["version"] == argv[1:2]:
# this is most likely meant in new-style arg format. do not try compat parsing
pass
else: