Options¶
Here we list the optional parameters in mkg.
Program Metadata¶
-vor--versionshows version number and exits the program-hor--helpshows help message and exits the program--licensesshow the available open-source licenses and exits the program--standards: Show available language standards and exit the program
Project Metadata¶
-p _prog_or--prog _prog_sets project program name to prog, default to directory name-a _author_or--author _author_sets project author to author, default to somebody-b _brief_or--brief _brief_sets project description to brief, default to something-o _config_or--config _config_sets project configuration to config, default to Makefile-l _license_or--license _license_chooses a open-source license, default to none
Here are the available licenses in our program:
Recommended
Apache License 2.0 (
apache2)GNU General Public License v3.0 (
gpl3)MIT License (
mit)
Alternative
BSD 2-clause “Simplified” license (
bsd2)BSD 3-clause “New” or “Revised” license (
bsd3)Eclipse Public License 2.0 (
epl2)GNU Affero General Public License v3.0 (
agpl3)GNU General Public License v2.0 (
gpl2)GNU Lesser General Public License v2.1 (
lgpl2)GNU Lesser General Public License v3.0 (
lgpl3)Mozilla Public License 2.0 (
mpl2)The Unlicense (
unlicense)
Behavior Modifiers¶
-cor-Cgenerates a C project (default)-cppor-cxxgenerates a C++ project-std _std_or--standard _std_set the language standard to std--consolegenerates a console application project (default)--librarygenerates a library project--nestedgenerates a nested project (default)--flatgenerates a flat project-for--forceremoves all existing contents on path (Dangerous!)--customruns it interactively with more customization
Here are the available language standard for C:
c89orc90c99c11(default)c17orc18gnu89orgnu90gnu99gnu11gnu17orgnu18
Due to the limitation from Visual C++, this setting won’t take effect when using Visual C++.
Here are the available language standard for C++:
c++98orc++03c++11c++14c++17(default)gnu++98orgnu++03gnu++11gnu++14gnu++17
Due to the limitation from Visual C++, mkg will automatically set to the most appropriate language standard for C++ when using Visual C++.
Project Structure¶
These parameters only make effects in nested projects.
-s _dir_or--source _dir_sets source directory, default to src-i _dir_or--include _dir_sets include directory, default to include-d _dir_or--dist _dir_sets dist directory, default to dist-t _dir_or--test _dir_sets test programs directory, default to tests-e _dir_or--example _dir_sets example programs directory, default to examples