command line argument made easy , (just add arguments and methods for them and you are good to go).
Explore the docs »
·
Report Bug
·
Request Feature
Table of Contents
this project is made to satisfy one goal : parsing command line arguments with little steps making your work with command line arguments easy and fast.
Here's why:
- Your time should be focused on creating something amazing. A project that solves a problem and helps others
- You shouldn't be doing the same tasks over and over like creating a README from scratch
- You should element DRY principles to the rest of your life 😄
by forking this repo and creating a pull request or opening an issue.
A list of commonly used resources that I find helpful are listed in the acknowledgements.
check the test file where an example describing the work of this project. which is easy
example of usage.
linked_list_string* my_arguments = argument_init();
add_argument_with_help_and_action("add","a",1,INT,"this is for adding",&add,NULL,NULL,my_arguments);
add_argument_with_help_and_action("version","v",0,BOOL,"this is for version",NULL,NULL,&version,my_arguments);
add_argument_with_help_and_action("name","n",0,CHAR,"this is for printing name",NULL,&fun,NULL,my_arguments);
manage_arguments(argc,argv,my_arguments);
example of methods.
void add(int number){
printf("that number is : %d \n",number);
}
void fun(char* mychar){
printf("char string : %s\n",mychar);
}
void version(void){
printf("this is version 15.0.2 \n open source library \n \t made by : A Z Z E D I N E L A K H D A R \n");
}
Distributed under the GNU License. See LICENSE
for more information.
AZZEDINE LAKHDAR - @AZZEDINE_AT_TWITTER - aazzedinelakhdar@gmail.com
Project Link: https://github.com/Azzedine-prog/command-line-arguments-parser