-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show aliased functions in the -h output.
This pull request closes #68 by showing aliased functions specially in the output of yal when running with "-h". For example: ``` $ ./yal -h hms hms === hms is an alias for time:hms. time:hms ======== Return the current time as a string, formatted as 'HH:MM:SS'. zero-pad-single-number (num:number) =================================== Return the given number, padded to two digits, as a string. i.e. Add a '0' prefix to the specified number, for values less than ten. This is designed to pad the hours, minutes, and seconds in (hms). ``` When called via `(help)` everything works as-is, so there is no mention of the alias when this code runs: ``` (print (help hms)) ``` (Because we don't have access to the name, to lookup the function, we just the result, when our arguments are expanded.)
- Loading branch information
Showing
2 changed files
with
28 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters