Commit bad7bef
committed
util: create ~/.manpath when missing for -m true
Previously update_mandb_path() silently returned if ~/.manpath did
not exist, so 'cppman -m true' had no effect on a fresh system and
users had to 'touch ~/.manpath' first (#136, #98). Catch
FileNotFoundError specifically and continue with an empty file so
the MANDATORY_MANPATH / MANDB_MAP entries are written.
Also clarify the help text for -r/--rebuild-index, which has always
rebuilt both sources rather than only the configured one (#154).1 parent 0dd6733 commit bad7bef
2 files changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
92 | | - | |
| 91 | + | |
| 92 | + | |
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
| 48 | + | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
0 commit comments