diff --git a/doc/man1/timew-report.1.adoc b/doc/man1/timew-report.1.adoc index 6c000933..a37c1d3a 100644 --- a/doc/man1/timew-report.1.adoc +++ b/doc/man1/timew-report.1.adoc @@ -15,3 +15,6 @@ The 'report' command itself is optional, which means that these two commands are $ timew foo :week This does however assume there is a 'foo' extension installed. + +The return code is the return code of the extension. +If the extension produces no output, 255 is returned. diff --git a/src/commands/CmdReport.cpp b/src/commands/CmdReport.cpp index fcbd4e04..11fc0287 100644 --- a/src/commands/CmdReport.cpp +++ b/src/commands/CmdReport.cpp @@ -127,7 +127,7 @@ int CmdReport ( for (auto& line : output) std::cout << line << '\n'; - return 0; + return rc; } ////////////////////////////////////////////////////////////////////////////////