/*
* Copyright (c) 2008-2012 Zmanda, Inc. All Rights Reserved.
*
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 as published
- * by the Free Software Foundation.
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
{
printf("Usage: amarchiver [--version|--create|--list|--extract] [--verbose]* [--file file]\n");
printf(" [filename]*\n");
+ exit(1);
}
static void
g_fprintf(stderr,"Only one of --create, --list or --extract must be provided\n");
usage();
}
- if (opt_list > 1) {
- if (argc) {
- g_fprintf(stderr, "--list does not take any additional filenames\n");
- usage();
- }
- }
if (opt_create > 0)
do_create(opt_file, opt_verbose, argc, argv);