Skip to content

Commit

Permalink
improve --help output
Browse files Browse the repository at this point in the history
  • Loading branch information
cjmayo authored and KjellMorgenstern committed Oct 21, 2019
1 parent 0a73e35 commit 3537f5a
Showing 1 changed file with 20 additions and 7 deletions.
27 changes: 20 additions & 7 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,16 @@ int main(int argc, char *argv[])
cout <<
"Usage: Fritzing [-f FOLDER] [OPTION]... [FILE]\n"
"\n"
"Fritzing is an open-source hardware initiative that makes electronics accessible as a creative material for anyone. "
"We offer this software tool, a community website and services in the spirit of Processing and Arduino, "
"fostering a creative ecosystem that allows users to document their prototypes, share them with others, "
"teach electronics in a classroom, and layout and manufacture professional PCBs.\n"
"\n"
"For more information on Fritzing and its related activities visit <https://fritzing.org>.\n"
"\n"
"Options:\n"
"\n"
"user options:\n"
"User options:\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"
Expand All @@ -132,24 +139,30 @@ int main(int argc, char *argv[])
" -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"
"Administrator option:\n"
" -db, -database FILE rebuild the internal parts database FILE\n"
"\n"
"Developer options:\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"
" -ep FILE add menu item for external process using executable FILE\n"
" -eparg ARGS with -ep, external process arguments ARGS\n"
" -epname NAME with -ep, external process menu item NAME\n"
"\n"
"The -geda/-kicad/-kicadschematic/-gerber/svg options all exit Fritzing after the conversion process is complete;\n"
"The -geda, -kicad, -kicadschematic, -gerber SVG options all exit Fritzing after the conversion process is complete;\n"
"these options are mutually exclusive.\n"
"\n"
#ifndef PKGDATADIR
"Usually, the Fritzing executable is stored in the same folder that contains the parts/bins/sketches/translations folders,\n"
"or the executable is in a child folder of the p/b/s/t folder.\n"
"If this is not the case, use the -f option to point to the p/b/s/t folder.\n"
"\n"
#endif
"The -ep option creates a menu item to launch an external process,\n"
"and puts the standard output of that process into a dialog window in Fritzing.\n"
"The process path follows the -ep argument; the name of the menu item follows the -epname argument;\n"
"and any arguments to pass to the external process are provided in the -eparg arguments.\n";
"and any arguments to pass to the external process are provided in the -eparg arguments.\n"
"\n"
"Report bugs or suggest improvements using the issue tracker <https://github.com/fritzing/fritzing-app/issues> or the user forum <https://forum.fritzing.org>.\n";
break;
}
case FInitResultVersion: {
Expand Down

0 comments on commit 3537f5a

Please sign in to comment.