function command( repl ) {
	return onCommand;

	/**
	* Loads variables from a specified workspace into the current workspace.
	*
	* @private
	* @param {string} name - workspace name
	* @param {Options} [options] - function options
	* @param {(RegExp|ArrayLikeObject)} [options.include] - name inclusion filter
	* @param {(RegExp|ArrayLikeObject)} [options.exclude] - name exclusion filter
	* @param {boolean} [options.override=true] - boolean indicating whether to override existing workspace variables
	* @returns {void}
	*/
	function onCommand( name, options ) {
		var isArrInc;
		var isArrExc;
		var opts;
		var err;
		var cnt;
		var ws;
		var v;
		var i;
		if ( !isString( name ) ) {
			err = new TypeError( format( 'invalid argument. First argument must be a string. Value: `%s`.', name ) );
			debug( 'Error: %s', err.message );
			repl._ostream.write( 'Error: '+err.message+'\n' );
			return;
		}
		opts = {
			'override': true
		};
		if ( arguments.length > 1 ) {
			if ( !isPlainObject( options ) ) {
				err = new TypeError( format( 'invalid argument. Options argument must be an object. Value: `%s`.', name ) );
				debug( 'Error: %s', err.message );
				repl._ostream.write( 'Error: '+err.message+'\n' );
				return;
			}
			if ( hasOwnProp( options, 'include' ) ) {
				isArrInc = isArrayLike( options.include );
				if ( isArrInc === false && !isRegExp( options.include ) ) {
					err = new TypeError( format( 'invalid option. `%s` option must be a regular expression or an array-like object. Option: `%s`.', 'include', options.include ) );
					debug( 'Error: %s', err.message );
					repl._ostream.write( 'Error: '+err.message+'\n' );
					return;
				}
				opts.include = options.include;
			}
			if ( hasOwnProp( options, 'exclude' ) ) {
				isArrExc = isArrayLike( options.exclude );
				if ( isArrExc === false && !isRegExp( options.exclude ) ) {
					err = new TypeError( format( 'invalid option. `%s` option must be a regular expression or an array-like object. Option: `%s`.', 'exclude', options.exclude ) );
					debug( 'Error: %s', err.message );
					repl._ostream.write( 'Error: '+err.message+'\n' );
					return;
				}
				opts.exclude = options.exclude;
			}
			if ( hasOwnProp( options, 'override' ) ) {
				if ( !isBoolean( options.override ) ) {
					err = new TypeError( format( 'invalid option. `%s` option must be a boolean. Option: `%s`.', 'override', options.override ) );
					debug( 'Error: %s', err.message );
					repl._ostream.write( 'Error: '+err.message+'\n' );
					return;
				}
				opts.override = options.override;
			}
		}
		if ( name === repl._currentWorkspace ) {
			log( repl, 'Already in \''+name+'\' workspace.' );
			debug( 'Already in \'%s\' workspace.', name );
			return;
		}
		if ( !hasOwnProp( repl._workspaces, name ) ) {
			err = new Error( format( 'invalid argument. Unrecognized workspace name. Value: `%s`.', name ) );
			debug( 'Error: %s', err.message );
			repl._ostream.write( 'Error: '+err.message+'\n' );
			return;
		}
		ws = repl._workspaces[ name ];

		// Note: the internal branches are not the most performant implementation, but the implementation is straightforward and presumably "good enough"...
		cnt = 0;
		for ( i = 0; i < ws.length; i += 2 ) {
			v = ws[ i ];
			if ( opts.include ) {
				if ( isArrInc && !contains( opts.include, v ) ) {
					continue;
				}
				if ( !opts.include.test( v ) ) {
					continue;
				}
			}
			if ( opts.exclude ) {
				if ( isArrExc && contains( opts.exclude, v ) ) {
					continue;
				}
				if ( opts.exclude.test( v ) ) {
					continue;
				}
			}
			if ( hasOwnProp( repl._context, v ) && opts.override === false ) {
				continue;
			}
			// If we've made it this far, the variable should have passed all filters...
			cnt += 1;
			defineProperty( repl._context, v, ws[ i+1] );
		}
		log( repl, cnt.toString()+' variable(s) loaded from \''+name+'\' workspace.' );
		debug( '%d variable(s) loaded from \'%s\' workspace.', cnt, name );
	}
}
Returns a callback to be invoked upon calling the `loadWorkspace` command.

@private
@param {REPL} repl - REPL instance
@returns {Function} callback