Jaymon / .bash

common bash functions and aliases I've written/accumulated over the years

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

help can take a file and then parse that file for #? comments

Jaymon opened this issue · comments

This would be nice to check help on files that aren't in the .bash directory

Everything that's needed is mostly already there, the help.sh file has a printHelpFile function, that and the supporting functions should be moved to a bin/helpf script that help.sh can use.

I think I also should have it parse the file looking for . path or source path commands and it should parse and print help for those also. In order to get passed . $some_var type commands I think it can get the line and find the $some_var and then expand it, maybe?