Skip to content

Commit

Permalink
reformat --help output for help2man
Browse files Browse the repository at this point in the history
  • Loading branch information
cjmayo authored and KjellMorgenstern committed Oct 21, 2019
1 parent ca1a1bf commit 0a73e35
Showing 1 changed file with 17 additions and 23 deletions.
40 changes: 17 additions & 23 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,34 +116,28 @@ int main(int argc, char *argv[])
case FInitResultHelp: {
QTextStream cout(stdout);
cout <<
"Fritzing version " << Version::versionString() << " - Qt version " << QT_VERSION_STR << "\n"
"Usage: Fritzing [-f FOLDER] [OPTION]... [FILE]\n"
"\n"
"usage: fritzing [-d] [-f path] filename\n"
" fritzing [-f path] -geda folder\n"
" fritzing [-f path] -gerber folder\n"
" fritzing [-f path] -kicad folder\n"
" fritzing [-f path] -kicadschematic folder\n"
" fritzing [-f path] -svg folder\n"
" fritzing [-f path] -port number\n"
"Options:\n"
"\n"
"user options:\n"
" d,debug : runs Fritzing in debug mode, providing additional debug information\n"
//" drc filename : runs a design rule check on the given sketch file\n"
" f,folder : path to folder containing Fritzing parts, sketches, bins, & translations folders\n"
" geda path : converts all gEDA footprint (.fp) files in folder <path> to Fritzing SVGs\n"
" g,gerber path : exports all sketches in folder <path> to Gerber, in the same folder\n"
" h,help : print this help message\n"
" kicad path : converts all Kicad footprint (.mod) files in folder <path> to Fritzing SVGs\n"
" kicadschematic path: converts all Kicad schematic (.lib) files in folder <path> to Fritzing SVGs\n"
" port : runs Fritzing as a server process under <port>\n"
" svg path : exports all sketches in folder <path> to SVGs of all views, in the same folder\n"
" -d, -debug run Fritzing in debug mode, providing additional debug information\n"
//" drc filename : runs a design rule check on the given sketch file\n"
" -f, -folder FOLDER use Fritzing parts, sketches, bins and translations in folders under FOLDER\n"
" -geda FOLDER convert all gEDA footprint (.fp) files in FOLDER to Fritzing SVGs\n"
" -g, -gerber FOLDER export all sketches in FOLDER to Gerber, in the same folder\n"
" -h, -help print this help message\n"
" -kicad FOLDER convert all Kicad footprint (.mod) files in FOLDER to Fritzing SVGs\n"
" -kicadschematic FOLDER convert all Kicad schematic (.lib) files in FOLDER to Fritzing SVGs\n"
" -port NUMBER run Fritzing as a server process on port NUMBER\n"
" -svg FOLDER export all sketches in FOLDER to SVGs of all views, in the same folder\n"
"\n"
"developer options:\n"
" db path : rebuilds the internal parts database at the given path\n"
" e,examples path : prepares all sketches in the folder to be included as examples\n"
" ep path : external process at <path>\n"
" eparg args : external process arguments\n"
" epname name : external process menu item name\n"
" -db, -database FILE rebuild the internal parts database FILE\n"
" -e, -examples FOLDER prepare all sketches in FOLDER to be included as examples\n"
" -ep FILE external process at FILE\n"
" -eparg ARGS external process arguments ARGS\n"
" -epname NAME external process menu item NAME\n"
"\n"
"The -geda/-kicad/-kicadschematic/-gerber/svg options all exit Fritzing after the conversion process is complete;\n"
"these options are mutually exclusive.\n"
Expand Down

0 comments on commit 0a73e35

Please sign in to comment.