After a report in IRC...
```lang=php
$this->addOption( 'username-prefix', 'Prefix for interwiki usernames', false, true );
$this->addOption( 'no-local-users',
'Treat all usernames as interwiki. ' .
'The default is to assign edits to local users where they exist.',
false, false
);
```
But if we look how they're used...
```lang=php
if ( $this->hasOption( 'username-prefix' ) ) {
$importer->setUsernamePrefix(
$this->getOption( 'username-prefix' ),
!$this->hasOption( 'no-local-users' )
);
}
```
which calls
```lang=php
/**
* @since 1.31
* @param string $usernamePrefix Prefix to apply to unknown (and possibly also known) usernames
* @param bool $assignKnownUsers Whether to apply the prefix to usernames that exist locally
*/
public function setUsernamePrefix( $usernamePrefix, $assignKnownUsers ) {
$this->externalUserNames = new ExternalUserNames( $usernamePrefix, $assignKnownUsers );
}
```
But if `setUsernamePrefix` isn't called...
```lang=php
$this->externalUserNames = new ExternalUserNames( 'imported', false );
```
The `false` there would mean that local usernames are not assigned...
```lang=php
/**
* @param string $usernamePrefix Prefix to apply to unknown (and possibly also known) usernames
* @param bool $assignKnownUsers Whether to apply the prefix to usernames that exist locally
*/
public function __construct( $usernamePrefix, $assignKnownUsers ) {
$this->usernamePrefix = rtrim( (string)$usernamePrefix, ':>' );
$this->assignKnownUsers = (bool)$assignKnownUsers;
}
```