mirror of
https://github.com/esphome/esphome.git
synced 2025-07-24 20:26:35 +00:00
[core] Allow extra args on cli and just ignore them
This commit is contained in:
parent
5a4e2a3eaf
commit
c96dcd61f4
@ -1033,11 +1033,11 @@ def parse_args(argv):
|
||||
arguments = argv[1:]
|
||||
|
||||
argcomplete.autocomplete(parser)
|
||||
return parser.parse_args(arguments)
|
||||
return parser.parse_known_args(arguments)
|
||||
|
||||
|
||||
def run_esphome(argv):
|
||||
args = parse_args(argv)
|
||||
args, _ = parse_args(argv)
|
||||
CORE.dashboard = args.dashboard
|
||||
|
||||
# Override log level if verbose is set
|
||||
|
Loading…
x
Reference in New Issue
Block a user