koppor / jabref

Collection of simple for JabRef issues. Please submit PRs to https://github.com/jabRef/jabref/.
https://github.com/jabRef/jabref/
MIT License
8 stars 15 forks source link

Make help output consistent: import and export formats #429

Closed koppor closed 1 year ago

koppor commented 4 years ago

Current help output:

usage: jabref [OPTIONS] [BIBTEX_FILE]

Options: [-a <FILE[.aux],FILE[.bib] FILE>] [-asfl] [-b] [--console] [-d <KEY1[,KEY2][,KEYn] | all>]
       [--debug] [-f <FETCHER:QUERY>] [-g] [-h] [-i <FILE[,FORMAT]>] [-ib <BIBTEXT_STRING>]
       [--importToOpen <FILE[,FORMAT]>] [-m <QUERY,FILE[,FORMAT]>] [-n] [-o <FILE[,FORMAT]>] [-p
       <[FILE]>] [-v] [-x <[FILE]>]
 -a,--aux <FILE[.aux],FILE[.bib] FILE>      Sublibrary from AUX to BibTeX: '-a thesis.aux,new.bib'
 -asfl,--automaticallySetFileLinks          Automatically set file links
 -b,--blank                                 Do not open any files at startup
    --console                               Show console output (only when the launcher is used)
 -d,--prdef <KEY1[,KEY2][,KEYn] | all>      Reset preferences: '-d mainFontSize,newline' or '-d all'
    --debug                                 Show debug level messages
 -f,--fetch <FETCHER:QUERY>                 Run fetcher: '-f Medline/PubMed:cancer'
 -g,--generateBibtexKeys                    Regenerate all keys for the entries in a BibTeX file
 -h,--help                                  Display help on command line options
 -i,--import <FILE[,FORMAT]>                Import file: '-i library.bib'
 -ib,--importBibtex <BIBTEXT_STRING>        Import BibTeX: '-ib @article{entry}'
    --importToOpen <FILE[,FORMAT]>          Same as --import, but will be imported to the opened tab
 -m,--exportMatches <QUERY,FILE[,FORMAT]>   Matching: '-i db.bib -m author=Newton,search.htm,html'
 -n,--nogui                                 No GUI. Only process command line options
 -o,--output <FILE[,FORMAT]>                Export an input to a file: '-i db.bib -o db.htm,html'
 -p,--primp <[FILE]>                        Import preferences from a file: '-p prefs.xml'
 -v,--version                               Display version
 -x,--prexp <[FILE]>                        Export preferences to a file: '-x prefs.xml'

Available import formats:
  BibTeX         : bibtex
  BibTeXML       : bibtexml
  Biblioscape    : biblioscape
  Copac          : cpc
  EndNote XML    : endnote
  INSPEC         : inspec
  ISI            : isi
  MODS           : mods
  MSBib          : msbib
  Medline/PubMed : medline
  Medline/PubMed Plain : medlineplain
  Ovid           : ovid
  PDFcontent     : pdfcontent
  REPEC New Economic Papers (NEP) : repecnep
  RIS            : ris
  Refer/Endnote  : refer
  SilverPlatter  : silverplatter
  XMP-annotated PDF : xmp

Available export formats: html, simplehtml, docbook5, docbook4, din1505,
bibordf, tablerefs, listrefs, tablerefsabsbib, harvard, iso690rtf,
iso690txt, endnote, oocsv, ris, misq, bibtexml, oocalc, ods, MSBib,
mods, xmp, pdf

Please report issues at https://github.com/JabRef/jabref/issues.

The available export formats should be output a similar say than available import formats.

BugMan-111 commented 1 year ago

Hi, I am interested in working on this issue. Could you please move this issue to "reserved". Thanks

desperadomzc commented 1 year ago

@koppor Hi, Mr.Koppor. I and @BugMan-111 has fixed this issue under our Organization(SPI-2023). I have just created a pull request and The PR check is passed. We have tested the help output format and I think this issue is fixed.

koppor commented 1 year ago

@desperadomzc and @BugMan-111. Yes, the issue is fixed - Pull request #9944 merged.