Skip to content

Commit 4f1bfc3

Browse files
committed
examples: Output usage by default
1 parent b318c8a commit 4f1bfc3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/Protonect.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ class MyFileLogger: public libfreenect2::Logger
8383
int main(int argc, char *argv[])
8484
{
8585
std::string program_path(argv[0]);
86+
std::cerr << "Environment variables: LOGFILE=<protonect.log>" << std::endl;
87+
std::cerr << "Usage: " << program_path << " [gl | cl | cpu] [<device serial>] [-noviewer]" << std::endl;
8688
size_t executable_name_idx = program_path.rfind("Protonect");
8789

8890
std::string binpath = "/";

0 commit comments

Comments
 (0)