02.05.2013 Views

Description - Mks.com

Description - Mks.com

Description - Mks.com

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

si addmemberattr<br />

adds attributes to a member<br />

SYNOPSIS<br />

si addmemberattr [(--attr=key[=value]|--attribute=key[=value])]<br />

[(-R|--[no|confirm]recurse)] [--filter=filteroptions] [(-P project|--project=project)]<br />

[(-S sandbox|--sandbox=sandbox)] [--devpath=path] [--hostname=server]<br />

[--port=number] [--password=password] [--user=name] [(-?|--usage)]<br />

[(-F file|--selectionFile=file)] [(-N|--no)] [(-Y|--yes)] [--[no]batch] [--cwd=directory]<br />

[--forceConfirm=[yes|no]] [(-g|--gui)] [--quiet] [--settingsUI=[gui|default]]<br />

[--status=[none|gui|default]] member...<br />

DESCRIPTION<br />

si addmemberattr adds attributes to a member, replacing any previous attribute of that same<br />

name specified with the member. If no members are specified, the <strong>com</strong>mand applies to all<br />

members of the project.<br />

Attributes are key-value pairs of strings that are associated with a member. They are used for<br />

automated operations. For example, you could have an attribute indicating the target operating<br />

system type:<br />

si addmemberattr --attr OS=WIN32 activebutton.c<br />

and then you could perform other operations, such as si resync, on just those files through the<br />

--filter universal option:<br />

si resync --filter=attribute:OS=WIN32<br />

Note: Attribute keys cannot contain a hyphen (-) as the first character. The first character must<br />

either be a underscore (_) or an alpha character.<br />

Options<br />

This <strong>com</strong>mand takes the universal options available to all si <strong>com</strong>mands, as well as some general<br />

options. See the options reference page for descriptions.<br />

--attr=key[=value]<br />

--attribute=key[=value]<br />

sets the attribute key and, optionally, the value. Note: you cannot have <strong>com</strong>mas (,) in the<br />

key or value, nor an underscore (_) at the beginning of an attribute.<br />

27 of 457

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!