mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-29 21:43:55 +08: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:
parent
c8c641dd63
commit
75a4e28e4f
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user