From 6511a06111ec186ec56ae836590af3407b2a8b62 Mon Sep 17 00:00:00 2001 From: DarkmatterVale Date: Wed, 30 Dec 2015 09:47:12 +0000 Subject: [PATCH] Add help option to RemoteDesktop --- src/apps/remotedesktop/RemoteDesktop.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/apps/remotedesktop/RemoteDesktop.cpp b/src/apps/remotedesktop/RemoteDesktop.cpp index 2e48f26250..da08c4092b 100644 --- a/src/apps/remotedesktop/RemoteDesktop.cpp +++ b/src/apps/remotedesktop/RemoteDesktop.cpp @@ -28,13 +28,20 @@ print_usage(const char *app) printf("usage:\t%s --listenOnly [-p ]\n", app); printf("\t%s [-p ] [-s ] [-c ]\n", app); + printf("\t%s --help\n\n", app); + + printf("Connect to & run applications from a different computer\n\n"); + printf("Arguments available for use:\n\n"); + printf("\t-p\t\tspecify the port to communicate on\n"); + printf("\t-c\t\tsend a command to the other computer\n"); + printf("\t-s\t\tuse ssh & specify the ssh port to communicate on\n"); } int main(int argc, char *argv[]) { - if (argc < 2) { + if (argc < 2 || strcmp(argv[1], "--help") == 0) { print_usage(argv[0]); return 1; }