Skip to content
Snippets Groups Projects
Commit 27990937 authored by megachriz's avatar megachriz Committed by MegaChriz
Browse files

Issue #2822679 by MegaChriz: Improved documentation for options --file, --url...

Issue #2822679 by MegaChriz: Improved documentation for options --file, --url and --stdin for the Drush command 'feeds-import'.
parent 68aec0d1
No related branches found
No related tags found
No related merge requests found
...@@ -45,10 +45,10 @@ function feeds_drush_command() { ...@@ -45,10 +45,10 @@ function feeds_drush_command() {
'importer' => 'The name of the Feeds importer that will be refreshed. Mandatory.', 'importer' => 'The name of the Feeds importer that will be refreshed. Mandatory.',
), ),
'options' => array( 'options' => array(
'nid' => 'The nid of the Feeds importer that will be imported. Optional.', 'nid' => '(optional) The nid of the Feeds importer that will be imported.',
'file' => 'The file to import. Optional.', 'file' => '(optional) The file to import. Bypasses the configured fetcher and does *not* update the source configuration.',
'url' => 'The URL to import. Optional.', 'url' => '(optional) The URL to import. Bypasses the configured fetcher and does *not* update the source configuration.',
'stdin' => 'Read the file to import from stdin. Optional.', 'stdin' => '(optional) Read the file to import from stdin. Bypasses the configured fetcher and does *not* update the source configuration.',
), ),
'examples' => array( 'examples' => array(
'drush feeds-import my_importer' => "Import items with the importer 'my_importer'.", 'drush feeds-import my_importer' => "Import items with the importer 'my_importer'.",
...@@ -142,7 +142,9 @@ function feeds_drush_help($section) { ...@@ -142,7 +142,9 @@ function feeds_drush_help($section) {
case 'drush:feeds-list-feeds': case 'drush:feeds-list-feeds':
return dt("List all feed sources. You can limit the number of feed sources to display by setting the option '--limit'."); return dt("List all feed sources. You can limit the number of feed sources to display by setting the option '--limit'.");
case 'drush:feeds-import': case 'drush:feeds-import':
return dt("Import items from a feed. Follow the command with the importer name to import items with. If the importer is attached to a content type, specify also the feed node with the option '--nid'."); $help = dt("Import items from a feed. Follow the command with the importer name to import items with. If the importer is attached to a content type, specify also the feed node with the option '--nid'.");
$help .= "\n" . dt("Note that the options '--file', '--stdin' and '--url' temporary bypass the configured fetcher and do *not* update the source configuration. For example, if a file was uploaded for the feed source, that file will remain there even when you specify a different file using the '--file' option. Same story applies for when importing from a url. If you omit these options, the last stored source will be used.");
return $help;
case 'drush:feeds-import-all': case 'drush:feeds-import-all':
return dt('Import items from all feeds. Optionally specify the importer name to import all feeds for.'); return dt('Import items from all feeds. Optionally specify the importer name to import all feeds for.');
case 'drush:feeds-clear': case 'drush:feeds-clear':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment