mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-06 17:31:14 -03:00
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:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user