diff options
author | Pekka Paalanen <pekka.paalanen@collabora.co.uk> | 2017-11-01 12:20:24 +0200 |
---|---|---|
committer | Pekka Paalanen <pekka.paalanen@collabora.co.uk> | 2017-11-28 09:18:08 +0200 |
commit | 1a2adfedea74ae264eca7d4b8cbe6d1f04e552bf (patch) | |
tree | f2cfdc5d15a9dea9bd3c10f2db24882eaa280b2e | |
parent | 625f56f06250aa70f74b9c99a9d47d6009dda76d (diff) |
weston-launch: improve help text for -u and -t
Explain that -u requires root and -t requires -u. Most importantly,
document in what format does -t expect the tty to be given.
It has been confusing, because Weston's --tty option takes an integer,
weston-launch takes a full device path.
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Acked-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net>
-rw-r--r-- | libweston/weston-launch.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libweston/weston-launch.c b/libweston/weston-launch.c index 1415e72d..c8e1513d 100644 --- a/libweston/weston-launch.c +++ b/libweston/weston-launch.c @@ -676,8 +676,10 @@ static void help(const char *name) { fprintf(stderr, "Usage: %s [args...] [-- [weston args..]]\n", name); - fprintf(stderr, " -u, --user Start session as specified username\n"); - fprintf(stderr, " -t, --tty Start session on alternative tty\n"); + fprintf(stderr, " -u, --user Start session as specified username,\n" + " e.g. -u joe, requires root.\n"); + fprintf(stderr, " -t, --tty Start session on alternative tty,\n" + " e.g. -t /dev/tty4, requires -u option.\n"); fprintf(stderr, " -v, --verbose Be verbose\n"); fprintf(stderr, " -h, --help Display this help message\n"); } |