nipoppy.cli.OrderedAliasedGroup

class nipoppy.cli.OrderedAliasedGroup(*args, **kwargs)

Group that lists commands in the order they were added and supports aliases.

Parameters:
  • args (Any)

  • kwargs (Any)

get_command(ctx, cmd_name)

Handle aliases.

Given a context and a command name, this returns a Command object if it exists or returns None.

list_commands(ctx)

List commands in the order they were added.

alias_map