Skip to content

Commit

Permalink
Fix aliases for values deeper in the hierarchy, fixes 631
Browse files Browse the repository at this point in the history
  • Loading branch information
maxnoe committed Oct 7, 2020
1 parent 20b64f5 commit 2ea9cb5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion traitlets/config/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,8 @@ def emit_alias_help(self):
longname, fhelp = longname
else:
fhelp = None
classname, traitname = longname.split('.', 1)
classname, traitname = longname.split('.')[-2:]
longname = classname + '.' + traitname
cls = classdict[classname]

trait = cls.class_traits(config=True)[traitname]
Expand Down

0 comments on commit 2ea9cb5

Please sign in to comment.