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

Argument parsing changes + Code changes #3

Merged
merged 7 commits into from
Jul 11, 2023
Merged

Argument parsing changes + Code changes #3

merged 7 commits into from
Jul 11, 2023

Conversation

Jm15itch
Copy link
Contributor

In this pull:

I have changes an if statement to a switch statement, this made it easier to read and potentially increased performance.

I did an overhaul of how arguments where read by the program. Now arguments are looked up on a switch with hashes. This allows for more efficient scaling, faster checks, and enables a more modular approach. Hashes can be calculated with the inbuilt tool that is called with ./tuxpusher -gh {STRINGTOBEHASHED}

I separate the help menu from main.c and placed it in the assets folder. I also changed the look of it to reflect the new changes.


Please note, I'm currently only using github's website at the moment and it (to my knowledge) does not allow me to undo commits, that's why console_menus.h was relocated etc.

Jm15itch added 7 commits July 11, 2023 09:34
Just a bit of cleanup of a few if statements at startup.
I made the arguments be passed as a hashmap and I changed a few things so they are easier to read.
So main.c looked less cluttered.
Push speed was accidentally missed while making the argument parser.
Added a bit of ascii styling to the help menu, added a contributors section, added the arguments, and added borders etc.
accidentally placed this file inside of the root directory instead of under assets
accidentally placed this file inside of the root directory instead of under assets
@mrbid mrbid merged commit 6defbb9 into mrbid:main Jul 11, 2023
@mrbid
Copy link
Owner

mrbid commented Jul 11, 2023

Looks good! Those are some good contributions thank you.

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.

2 participants