@fiss_cmd<EOL>def space_clone(args):
<EOL>if not args.to_workspace:<EOL><INDENT>args.to_workspace = args.workspace<EOL><DEDENT>if not args.to_project:<EOL><INDENT>args.to_project = args.project<EOL><DEDENT>if (args.project == args.to_project<EOL>and args.workspace == args.to_workspace):<EOL><INDENT>eprint("<STR_LIT>"<EOL>"<STR_LIT>")<EOL>return <NUM_LIT:1><EOL><DEDENT>r = fapi.clone_workspace(args.project, args.workspace, args.to_project,<EOL>args.to_workspace)<EOL>fapi._check_response_code(r, <NUM_LIT>)<EOL>if fcconfig.verbosity:<EOL><INDENT>msg = "<STR_LIT>".format(<EOL>args.project, args.workspace,<EOL>args.to_project, args.to_workspace)<EOL>print(msg)<EOL><DEDENT>return <NUM_LIT:0><EOL>
Replicate a workspace