worldbank/ietoolkit

[iegitaddmd]: Issue with `customfile()`

bbdaniels opened this issue · 1 comments

The customfile() option does not appear to work as expected. I have run:

. iegitaddmd , folder("/Users/bbdaniels/GitHub/bbd-template") auto customfile("/Users/bbdaniels/GitHub/bbd-template/README.md")
    File [/Users/bbdaniels/GitHub/bbd-template/ado/README.md] created.
    File [/Users/bbdaniels/GitHub/bbd-template/do/README.md] created.
    File [/Users/bbdaniels/GitHub/bbd-template/constructed/README.md] created.
    SKIPPED: Folder [/Users/bbdaniels/GitHub/bbd-template/.git] is skipped. See option skipvars() in iegitaddmd.
    File [/Users/bbdaniels/GitHub/bbd-template/data/README.md] created.
    File [/Users/bbdaniels/GitHub/bbd-template/outputs/appendix/README.md] created.
    File [/Users/bbdaniels/GitHub/bbd-template/outputs/explore/README.md] created.
    File [/Users/bbdaniels/GitHub/bbd-template/outputs/main/README.md] created.

But the default file is still created:

Screen Shot

The help file documentation uses the wrong option name and is not helpful in resolving this:

file(filename) allows the user to specify a file saved on the computer to be used as
        the placeholder file instead of the default README.md file. This allows people
        and organizations to write their own template placeholder files according to
        their own preferences. We recommend that a file of type .md (markdown) and name
        README.md is used as GitHub.com recognizes this name and format and will display
        the content of the file when someone browse to that folder on GitHub.com. But
        this is not a technical requirement, any file type and name can be used as
        placeholder file.

I was able to replicate and the fix was easy and done in 36e5ac7