X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fcmdline.c;h=6d45bd68c0aeeae04bae42d47352f4a4ad070e56;hb=2013acbcc3afa3f974de6ad335248e97a9c7b965;hp=56ce1d94e67ecd53697adec48a3853847ce70226;hpb=721f67e477ee5050961020ed5afd8e0daf42bf2d;p=pspp diff --git a/src/cmdline.c b/src/cmdline.c index 56ce1d94e6..6d45bd68c0 100644 --- a/src/cmdline.c +++ b/src/cmdline.c @@ -14,8 +14,8 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - 02111-1307, USA. */ + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + 02110-1301, USA. */ #include #include "cmdline.h" @@ -35,19 +35,20 @@ #include "str.h" #include "var.h" #include "version.h" +#include "copyleft.h" +#include "glob.h" void welcome (void); static void usage (void); char *subst_vars (char *); -static int testing_mode=0; - /* Parses the command line specified by ARGC and ARGV as received by main(). */ void parse_command_line (int argc, char **argv) { + static int testing_mode = 0; static struct option long_options[] = { {"algorithm", required_argument, NULL, 'a'}, @@ -77,7 +78,6 @@ parse_command_line (int argc, char **argv) int c, i; int cleared_device_defaults = 0; - int no_statrc = 0; for (;;) @@ -183,13 +183,7 @@ parse_command_line (int argc, char **argv) break; case 'V': puts (version); - puts (_("\nCopyright (C) 1997-9, 2000 Free Software Foundation, " - "Inc.\n" - "This is free software; see the source for copying " - "conditions. There is NO\n" - "WARRANTY; not even for MERCHANTABILITY or FITNESS " - "FOR A PARTICULAR PURPOSE.\n\n" - "Written by Ben Pfaff .")); + puts (legal); err_hcf (1); case '?': usage (); @@ -206,6 +200,7 @@ parse_command_line (int argc, char **argv) { /* FIXME: Later this option should do some other things, too. */ force_long_view(); + test_mode = 1; }