core/opened.js
/**
 * Converts object of options into options string
 * @param {Object} options - all - List opened files in all client workspaces.
 *                                 In distributed environments, this option lists only those files opened
 *                                 in other workspaces on your edge server;
 *                                 files opened on other edge servers do not appear.,
 *                           short - Short output; do not output the revision number or file type.
 *                                   This option is more efficient, particularly when using the -a (all-workspaces)
 *                                   option at large sites.
 *                           changelist - List the files in pending changelist change.
 *                           workspace - List only files that are open in the specified client workspace.
 *                           user - List only those files that were opened by user
 *                           max - List only the first max open files
 * @returns {string}
 */
Converts object of options into options string
@param {Object} options - all - List opened files in all client workspaces.
In distributed environments, this option lists only those files opened
in other workspaces on your edge server;
files opened on other edge servers do not appear.,
short - Short output; do not output the revision number or file type.
This option is more efficient, particularly when using the -a (all-workspaces)
option at large sites.
changelist - List the files in pending changelist change.
workspace - List only files that are open in the specified client workspace.
user - List only those files that were opened by user
max - List only the first max open files
@returns {string}
Converts object of options into options string @param { Object } options - all - List opened files in all client workspaces . In distributed environments this option lists only those files opened in other workspaces on your edge server ; files opened on other edge servers do not appear . short - Short output ; do not output the revision number or file type . This option is more efficient particularly when using the - a ( all - workspaces ) option at large sites . changelist - List the files in pending changelist change . workspace - List only files that are open in the specified client workspace . user - List only those files that were opened by user max - List only the first max open files @returns { string }
function optionsToCommand (options) {
  var cmd = ' ';
  for (var key in options) {
    var value = options[key];
    if (key === 'all' && value === true) cmd += '-a ';
    if (key === 'short' && value === true) cmd += '-s ';
    if (key === 'changelist') cmd += '-c ' + value + ' ';
    if (key === 'workspace') cmd += '-C ' + value + ' ';
    if (key === 'user') cmd += '-u ' + value + ' ';
    if (key === 'max') cmd += '-m ' + value + ' ';
  }
  return cmd;
}
function optionsToCommand ( options ) { var cmd = ' ' ; for ( var key in options ) { var value = options [ key ] ; if ( key === 'all' && value === true ) cmd += '-a ' ; if ( key === 'short' && value === true ) cmd += '-s ' ; if ( key === 'changelist' ) cmd += '-c ' + value + ' ' ; if ( key === 'workspace' ) cmd += '-C ' + value + ' ' ; if ( key === 'user' ) cmd += '-u ' + value + ' ' ; if ( key === 'max' ) cmd += '-m ' + value + ' ' ; } return cmd ; }
Converts object of options into options string
 @param {Object} options - all - List opened files in all client workspaces.
Converts object of options into options string @param { Object } options - all - List opened files in all client workspaces .