Impl subcommand with weakref