Skip to content

report aliases in our help #68

@skx

Description

@skx

Currently aliased functions show up twice:

frodo ~/Repos/github.com/skx/yal $ ./yal -h hms
hms
===
Return the current time as a string, formatted as 'HH:MM:SS'.


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).

If we added an "Alias string" method to the primitives we could set that in the (alias ..), which would allow:

..

hms
===

This is an alias of the function (time:hms)
..

It wouldn't make a massive amount of difference, but it would be cute!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions