Documentation
- Added comment explaining why '--version' is supported in main.cpp, as several questions have come up.
This commit is contained in:
@@ -38,6 +38,7 @@ int main (int argc, const char** argv)
|
|||||||
{
|
{
|
||||||
int status = 0;
|
int status = 0;
|
||||||
|
|
||||||
|
// Lightweight version checking that doesn't require initialization or any I/O.
|
||||||
if (argc == 2 && !strcmp (argv[1], "--version"))
|
if (argc == 2 && !strcmp (argv[1], "--version"))
|
||||||
{
|
{
|
||||||
std::cout << VERSION << "\n";
|
std::cout << VERSION << "\n";
|
||||||
|
|||||||
Reference in New Issue
Block a user