diff options
| author | 2016-10-24 20:29:08 +0200 | |
|---|---|---|
| committer | 2016-10-24 20:29:08 +0200 | |
| commit | 1182129ce5f07892afed190ffbb2ea4c7fc28967 (patch) | |
| tree | 969df97e334667b9e76d9b0a387486959b1da700 /cli/create-user.php | |
| parent | 879af85d3ce1223cc5642e9beb6ec05d1097e43a (diff) | |
CLI option no-default-feeds
https://github.com/FreshRSS/FreshRSS/issues/1095
Diffstat (limited to 'cli/create-user.php')
| -rwxr-xr-x | cli/create-user.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cli/create-user.php b/cli/create-user.php index 5e93d4605..c790acb59 100755 --- a/cli/create-user.php +++ b/cli/create-user.php @@ -9,11 +9,12 @@ $options = getopt('', array( 'language:', 'email:', 'token:', + 'no-default-feeds', )); if (empty($options['user'])) { fail('Usage: ' . basename(__FILE__) . " --user username ( --password 'password' --api-password 'api_password'" . - " --language en --email user@example.net --token 'longRandomString' )"); + " --language en --email user@example.net --token 'longRandomString --no-default-feeds' )"); } $username = $options['user']; if (!ctype_alnum($username)) { @@ -33,7 +34,9 @@ $ok = FreshRSS_user_Controller::createUser($username, array( 'language' => empty($options['language']) ? '' : $options['language'], 'token' => empty($options['token']) ? '' : $options['token'], - )); + ), + !isset($options['no-default-feeds']) + ); if (!$ok) { fail('FreshRSS could not create user!'); |
