Skip to content

Commit

Permalink
adds documentation usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
balazsracz committed Sep 1, 2020
1 parent 6eb5206 commit c1271c1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion applications/hub/main.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@ const char *socketcan_port = nullptr;
void usage(const char *e)
{
fprintf(stderr, "Usage: %s [-p port] [-d device_path] [-u upstream_host] "
"[-q upstream_port] [-m] [-n mdns_name] [-t] [-l]\n\n",
"[-q upstream_port] [-m] [-n mdns_name] "
#if defined(__linux__)
"[-s socketcan_interface] "
#endif
"[-t] [-l]\n\n",
e);
fprintf(stderr, "GridConnect CAN HUB.\nListens to a specific TCP port, "
"reads CAN packets from the incoming connections using "
Expand All @@ -87,6 +91,10 @@ void usage(const char *e)
"hub.\n");
fprintf(stderr,
"\t-q upstream_port is the port number for the upstream hub.\n");
#if defined(__linux__)
fprintf(stderr,
"\t-s can0 adds the SocketCan interface 'can0' to the hub.\n");
#endif
fprintf(stderr,
"\t-t prints timestamps for each packet.\n");
fprintf(stderr,
Expand Down

0 comments on commit c1271c1

Please sign in to comment.