From: Ray Strode Date: Wed, 4 Jun 2008 01:58:09 +0000 (-0400) Subject: rename --as-daemon to --attach-to-session X-Git-Tag: 0.2.0~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25507b1cf42df9fa1e812a606f3f5effe359054b;p=thirdparty%2Fplymouth.git rename --as-daemon to --attach-to-session It's a little clearer. --- diff --git a/src/main.c b/src/main.c index d19c1557..c2c7b8d1 100644 --- a/src/main.c +++ b/src/main.c @@ -567,12 +567,12 @@ main (int argc, .ptmx = -1, }; int exit_code; - bool asdaemon = false; + bool attach_to_session = false; - if (argc >= 2 && !strcmp(argv[1], "--asdaemon")) - asdaemon = true; + if (argc >= 2 && !strcmp(argv[1], "--attach-to-session")) + attach_to_session = true; - if (asdaemon && argc == 3) + if (attach_to_session && argc == 3) { state.ptmx = strtol(argv[2], NULL, 0); if ((state.ptmx == LONG_MIN || state.ptmx == LONG_MAX) && errno != 0) @@ -582,9 +582,9 @@ main (int argc, } } - if (argc <= 1 || (asdaemon && argc != 3) || (asdaemon && state.ptmx == -1)) + if (argc <= 1 || (attach_to_session && argc != 3) || (attach_to_session && state.ptmx == -1)) { - ply_error ("%s { other-command [other-command-args] | --as-daemon }", argv[0]); + ply_error ("%s [--attach-to-session ]", argv[0]); return EX_USAGE; } @@ -604,7 +604,7 @@ main (int argc, state.boot_buffer = ply_buffer_new (); - if (asdaemon) + if (attach_to_session) { state.session = attach_to_running_session (&state);