notmuch-emacs-mua: move --client option handling around
authorJani Nikula <jani@nikula.org>
Sat, 15 Aug 2015 09:05:13 +0000 (12:05 +0300)
committerDavid Bremner <david@tethera.net>
Tue, 29 Sep 2015 11:25:25 +0000 (08:25 -0300)
Move --client handling to a more suitable location. No functional
changes.

notmuch-emacs-mua

index e33aa955d6b559faf7e618a14b27717a9dd5928c..1f088c42feb90d16e5933083789819aac3edf794 100755 (executable)
@@ -82,9 +82,6 @@ while getopts :s:c:b:i:h opt; do
        --help|h)
            exec man notmuch-emacs-mua
            ;;
        --help|h)
            exec man notmuch-emacs-mua
            ;;
-       --client)
-           USE_EMACSCLIENT="yes"
-           ;;
        --subject|s)
            ELISP="${ELISP} (message-goto-subject) (insert \"${OPTARG}\")"
            ;;
        --subject|s)
            ELISP="${ELISP} (message-goto-subject) (insert \"${OPTARG}\")"
            ;;
@@ -107,6 +104,9 @@ while getopts :s:c:b:i:h opt; do
            NO_WINDOW="-nw"
            CREATE_FRAME=
            ;;
            NO_WINDOW="-nw"
            CREATE_FRAME=
            ;;
+       --client)
+           USE_EMACSCLIENT="yes"
+           ;;
        *)
            # We should never end up here.
            echo "$0: internal error (option ${opt})." >&2
        *)
            # We should never end up here.
            echo "$0: internal error (option ${opt})." >&2