Skip to content

Commit 07ce4c3

Browse files
authored
Fix #132. (#133)
1 parent b8e96ee commit 07ce4c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

knack/arguments.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ def extra(self, argument_dest, **kwargs):
331331
if not self._applicable():
332332
return
333333

334-
if self.command_scope not in self.command_loader.command_table:
334+
if self.command_scope in self.command_loader.command_group_table:
335335
raise ValueError("command authoring error: extra argument '{}' cannot be registered to a group-level "
336336
"scope '{}'. It must be registered to a specific command.".format(
337337
argument_dest, self.command_scope))

0 commit comments

Comments
 (0)