From e0ac9e7804b5c12ca9a29691695e032f573c6b1e Mon Sep 17 00:00:00 2001 From: Keith Winstein Date: Mon, 12 Mar 2012 05:08:40 -0400 Subject: [PATCH] Move version and copyright information to --version --- scripts/mosh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/mosh b/scripts/mosh index c21f913..57527c7 100755 --- a/scripts/mosh +++ b/scripts/mosh @@ -50,12 +50,12 @@ qq{Usage: $0 [options] [user@]host -p NUM --port=NUM server-side UDP port --help this message - --version + --version version and copyright information Please report bugs to mosh-devel\@mit.edu. -Mosh home page: http://mosh.mit.edu +Mosh home page: http://mosh.mit.edu\n}; -mosh $MOSH_VERSION +my $version_message = qq{mosh $MOSH_VERSION Copyright 2012 Keith Winstein License GPLv3+: GNU GPL version 3 or later . This is free software: you are free to change and redistribute it. @@ -84,7 +84,7 @@ GetOptions( 'client=s' => \$client, 'fake-proxy!' => \my $fake_proxy ) or die $usage; die $usage if ( defined $help ); -die "mosh $MOSH_VERSION\n" if ( defined $version ); +die $version_message if ( defined $version ); if ( defined $predict ) { predict_check( $predict, 0 );