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

Deflagify #76

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Deflagify #76

wants to merge 4 commits into from

Conversation

levirak
Copy link
Contributor

@levirak levirak commented Aug 18, 2017

A branch un-implements the modes as flags (e.g., -keygen became keygen). The way it is done is to let the non-flag arguments float to the end of argv (thanks to getopt), use the first non-flag argument as the mode, and pass an offset integer to all of the setups. This offset tells the setup where that first non-flag argument is, which will always be the mode name (e.g., "keygen"). From there, where the setups previously looked for argv[2] they now look for argv[offset+1].

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.

None yet

2 participants