code: def _register(self):
      super()._register()
      self._parser.add_argument(
          "-a",
          "--all",
          help="Show all runs. By default, it only shows unfinished runs or the last finished.",
          action="store_true",
      )
      self._parser.add_argument(
          "-v",
          "--verbose",
          help="Show more information about runs",
          action="store_true",
      )
      self._parser.add_argument(
          "-w",
          "--watch",
          help="Watch statuses of runs in realtime",
          action="store_true",
      )
  
file_path: dstack/src/dstack/_internal/cli/commands/ps.py
imports: import argparse
  import time
  from rich.live import Live
  import dstack._internal.cli.utils.run
  from dstack._internal.cli.commands import APIBaseCommand
  from dstack._internal.cli.utils.common import console
label_desc: Use image node_id 1 for calling the PsCommand obj's underlying member method code with example usage: obj._register() without return types