code: def validate_path(ctx, param, value):
      
      client = ctx.obj
  
      if value is None:
          from renku.models.provenance import ProcessRun
          activity = client.process_commit()
  
          if not isinstance(activity, ProcessRun):
              raise click.BadParameter('No tool was found.')
  
          return activity.path
  
      return value
docs: Detect a workflow path if it is not passed.