diff --git a/nerval/evaluate.py b/nerval/evaluate.py index 4eef4f840cf16715d0c24c4f254d6b2bd831b59f..73109d782358e2bc408a439983b2cf84bff02cf4 100644 --- a/nerval/evaluate.py +++ b/nerval/evaluate.py @@ -666,15 +666,13 @@ def main(): if args.annot: if not args.predict: - raise argparse.ArgumentError( - args.folder, "You need to specify the path to a predict file" - ) + raise parser.error("You need to specify the path to a predict file with -p") if args.annot and args.predict: run(args.annot, args.predict, args.threshold, args.verbose) elif args.csv: - if not args.csv: - raise argparse.ArgumentError( - args.folder, "You need to specify the path to a folder of bio files" + if not args.folder: + raise parser.error( + "You need to specify the path to a folder of bio files with -f" ) if args.folder and args.csv: run_multiple(args.csv, args.folder, args.threshold, args.verbose)