Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce structured arg parsing and reimpelement generateconfs atop it. #99

Conversation

albu-diku
Copy link

@albu-diku albu-diku commented Aug 2, 2024

Prior work made the defaults used for command line arguments in the
generateconfs utility accessible as a structure. Make use of this to
jettison our custom code and instead use all the user-facing niceties
of the argparse library.

This commit introduces a argument parsing wrapper for local use named
minimist in a nod to the node library of the same name from which we
largely borrow the externally facing API. It was remarkably suitable
for our purposes and a close match to our existing code which operates
in terms of arrays of argument names which must be treated a certain
way i.e. string, boolean, etc.

Depends on: #83

@albu-diku albu-diku mentioned this pull request Aug 2, 2024
@albu-diku albu-diku force-pushed the addition/argparse-generateconfs branch from 51df8e2 to d8bf548 Compare August 3, 2024 07:52
@albu-diku albu-diku changed the title Rough draft of reimplementing generateconfs cli atop generateconfs. **PREVIEW** Introduce structured arg parsing and reimpelement generateconfs atop it. Aug 3, 2024
@albu-diku albu-diku marked this pull request as ready for review August 3, 2024 07:53
@albu-diku albu-diku force-pushed the refactor/split-out-install-defaults branch from bab43cd to ff29485 Compare October 16, 2024 18:12
Prior work made the defaults used for command line arguments in the
generateconfs utility accessible as a structure. Make use of this to
jettison our custom code and instead use all the user-facing niceties
of the argparse library.

This commit introduces a argument parsing wrapper for local use named
minimist in a nod to the node library of the same name from which we
largely borrow the externally facing API. It was remarkably suitable
for our purposes and a close match to our existing code which operates
in terms of arrays of argument names which must be treated a certain
way i.e. string, boolean, etc.
@albu-diku albu-diku force-pushed the addition/argparse-generateconfs branch from d8bf548 to 357a99c Compare October 16, 2024 18:42
@albu-diku albu-diku removed the rebased label Nov 12, 2024
@albu-diku albu-diku closed this Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant