Hello Karo,

this is a discrepancy between code and documentation
-n or --notification
is the coded option
whereas the option in the documentation is listed as:
-n or --notify Kicks off the email alerting of the item(s) has(have) been imported

As the other options use the verb form
-a add etc. it will be best to correct the code rather than the docs.

Hope that helps

Claudia Jürgen


Am 15.03.2010 10:05, schrieb Karo Salminen:
Hi,

it seems like long form of notify option is not implemented in DSpace
1.6.0. Here's the command and the error I got:

sh-3.2$ /dspace/bin/dsrun org.dspace.app.itemimport.ItemImport  --add
--notify --workflow --eperson dsp...@tester4-kktest.lib.helsinki.fi
--collection 123456789/6 --source /tmp/foo --mapfile /tmp/foo/mapfile
Exception in thread "main"
org.apache.commons.cli.UnrecognizedOptionException: Unrecognized option:
--notify
          at org.apache.commons.cli.Parser.processOption(Parser.java:253)
          at org.apache.commons.cli.Parser.parse(Parser.java:170)
          at org.apache.commons.cli.Parser.parse(Parser.java:114)
          at org.dspace.app.itemimport.ItemImport.main(ItemImport.java:163)

No problems when importing with the short form "-n".

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

<<attachment: Claudia_Juergen.vcf>>

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to