Manpage generator: Give better error when we can't understand manpath

This would just say "No paths specified", which is *true*, but then we
typically don't give paths, because we figure out the man path.
This commit is contained in:
Fabian Homborg 2021-02-23 08:40:11 +01:00
parent c8c641dd63
commit 75a4e28e4f

View File

@ -1100,7 +1100,11 @@ if __name__ == "__main__":
cleanup_autogenerated_completions_in_directory(cleanup_dir) cleanup_autogenerated_completions_in_directory(cleanup_dir)
if not args.file_paths: if not args.file_paths:
print("No paths specified") if args.manpath:
print("No paths specified and I can't make sense of your MANPATH")
print("Please either give paths or set $MANPATH and try again")
else:
print("No paths specified")
sys.exit(0) sys.exit(0)
if not args.stdout and not args.directory: if not args.stdout and not args.directory: