GwR clarification of --fields switch for CLI

This commit is contained in:
GRiker 2011-01-28 06:43:47 -07:00
parent 6713cbfc54
commit 44e4d5a891

View File

@ -53,6 +53,7 @@ class CSV_XML(CatalogPlugin): # {{{
'database. Should be a comma-separated list of fields.\n' 'database. Should be a comma-separated list of fields.\n'
'Available fields: %s,\n' 'Available fields: %s,\n'
'plus user-created custom fields.\n' 'plus user-created custom fields.\n'
'Example: --fields=title,authors,tags\n'
"Default: '%%default'\n" "Default: '%%default'\n"
"Applies to: CSV, XML output formats")%', '.join(FIELDS)), "Applies to: CSV, XML output formats")%', '.join(FIELDS)),
@ -230,6 +231,7 @@ class BIBTEX(CatalogPlugin): # {{{
help = _('The fields to output when cataloging books in the ' help = _('The fields to output when cataloging books in the '
'database. Should be a comma-separated list of fields.\n' 'database. Should be a comma-separated list of fields.\n'
'Available fields: %s.\n' 'Available fields: %s.\n'
'Example: --fields=title,authors,tags\n'
"Default: '%%default'\n" "Default: '%%default'\n"
"Applies to: BIBTEX output format")%', '.join(FIELDS)), "Applies to: BIBTEX output format")%', '.join(FIELDS)),
@ -523,7 +525,7 @@ class BIBTEX(CatalogPlugin): # {{{
citation_bibtex= True citation_bibtex= True
else : else :
citation_bibtex= opts.impcit citation_bibtex= opts.impcit
#Check add file entry and go to default in case of bad CLI #Check add file entry and go to default in case of bad CLI
if isinstance(opts.addfiles, (StringType, UnicodeType)) : if isinstance(opts.addfiles, (StringType, UnicodeType)) :
if opts.addfiles == 'False' : if opts.addfiles == 'False' :