diff options
author | Siteshwar Vashisht <siteshwar@gmail.com> | 2012-06-07 00:00:43 +0530 |
---|---|---|
committer | Siteshwar Vashisht <siteshwar@gmail.com> | 2012-06-07 00:00:43 +0530 |
commit | c7941fc7b0bf0b6b6a7481d6c3ba46be95ad1aea (patch) | |
tree | b5dd8e7527f87912f2b566014419677ef2a0c130 /share | |
parent | 1078ad9ae93f38eb3cb7d841633cc9b6a6a33459 (diff) |
Use manpath instead of man --path to find man page paths.
Diffstat (limited to 'share')
-rwxr-xr-x | share/tools/create_manpage_completions.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/share/tools/create_manpage_completions.py b/share/tools/create_manpage_completions.py index c27b6cf8..14046051 100755 --- a/share/tools/create_manpage_completions.py +++ b/share/tools/create_manpage_completions.py @@ -774,11 +774,11 @@ def parse_and_output_man_pages(paths, output_directory, show_progress): def get_paths_from_manpath(): # Return all the paths to man(1) files in the manpath import subprocess, os - proc = subprocess.Popen(['man', '--path'], stdout=subprocess.PIPE) + proc = subprocess.Popen(['manpath'], stdout=subprocess.PIPE) manpath, err_data = proc.communicate() parent_paths = manpath.decode().strip().split(':') if not parent_paths: - sys.stderr.write("Unable to get the manpath (tried man --path)\n") + sys.stderr.write("Unable to get the manpath (tried manpath)\n") sys.exit(-1) result = [] for parent_path in parent_paths: @@ -801,7 +801,7 @@ def usage(script_name): -v, --verbose\tShow debugging output to stderr -s, --stdout\tWrite all completions to stdout (trumps the --directory option) -d, --directory\tWrite all completions to the given directory, instead of to ~/.config/fish/completions - -m, --manpath\tProcess all man1 files available in the manpath (as determined by man --path) + -m, --manpath\tProcess all man1 files available in the manpath (as determined by manpath) -p, --progress\tShow progress """) |