replace warning with UsageError