From 1fb09be6d554128f86c85d0b03fcd8d40af4db5e Mon Sep 17 00:00:00 2001 From: Chris Gravel Date: Thu, 16 Jun 2022 13:50:59 -0700 Subject: [PATCH] Chef - Add choices for device arg --- examples/chef/chef.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/chef/chef.py b/examples/chef/chef.py index fcdd5e4f37a777..31c2a6d6d7234e 100755 --- a/examples/chef/chef.py +++ b/examples/chef/chef.py @@ -231,7 +231,8 @@ def main(argv: Sequence[str]) -> None: parser.add_option("-g", "--zapgui", help="runs zap GUI display to allow editing of data model", action="store_true", dest="do_run_gui") parser.add_option("-d", "--device", dest="sample_device_type_name", - help="specifies device type. Default is lighting. See info above for supported device types", metavar="TARGET", default="lighting") + help="specifies device type. Default is lighting. See info above for supported device types", + metavar="TARGET", choices=_DEVICE_LIST) parser.add_option("-t", "--target", type='choice', action='store', dest="build_target",