Skip to content

Commit

Permalink
main: don't list invisible parsers in --list-subparsers output
Browse files Browse the repository at this point in the history
Signed-off-by: Masatake YAMATO <[email protected]>
  • Loading branch information
masatake committed Mar 23, 2022
1 parent e4cb7be commit 4ecf2c9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main/dependency.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,9 @@ extern void subparserColprintAddSubparsers (struct colprintTable *table,
if (tmp->type != DEPTYPE_SUBPARSER)
continue;

if (!isLanguageVisible (tmp->id))
continue;

struct colprintLine *line = colprintTableGetNewLine(table);

colprintLineAppendColumnCString (line, getLanguageName (tmp->id));
Expand Down

0 comments on commit 4ecf2c9

Please sign in to comment.