code: def register_options(cls, register):
      
      super(JvmResolverBase, cls).register_options(register)
      # TODO This flag should be defaulted to True when we are doing hermetic execution,
      # and should probably go away as we move forward into that direction.
      register('--capture-snapshots', type=bool, default=False,
        help='Enable capturing snapshots to add directory digests to dependency jars.'
             'Note that this is necessary when hermetic execution is enabled.')
docs: Register an option to make capturing snapshots optional.
      This class is intended to be extended by Jvm resolvers (coursier and ivy), and the option name should reflect that.