code: def space_clone(args):
      
      # FIXME: add --deep copy option (shallow by default)
      #        add aliasing capability, then make space_copy alias
      if not args.to_workspace:
          args.to_workspace = args.workspace
      if not args.to_project:
          args.to_project = args.project
      if (args.project == args.to_project
          and args.workspace == args.to_workspace):
          eprint("Error: destination project and namespace must differ from"
                 " cloned workspace")
          return 1
  
      r = fapi.clone_workspace(args.project, args.workspace, args.to_project,
                                                              args.to_workspace)
      fapi._check_response_code(r, 201)
  
      if fcconfig.verbosity:
          msg = "{}/{} successfully cloned to {}/{}".format(
                                              args.project, args.workspace,
                                              args.to_project, args.to_workspace)
          print(msg)
  
      return 0
docs: Replicate a workspace