Skip to content

Option to place user software before generated code placement. #110

Open
@TranslucentSabre

Description

@TranslucentSabre

I have a script that I have converted from getopt to argbash, and in doing so I seem to have hit some limitations.

I would like to be able to run some user code before the generated code runs, specifically the declaration of the default argument/option values.
I would also like to be able to use help more dynamically, with default values listed in variables. This help use-case I've been able to work around by using ARGBASH_PREPARE and calling the generated API from my own code, but I am concerned about updating to a new major rev and the new generated API being different in the future.
I will see if I can update my script as an example. If not I'll paste in some snippets.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions