Skip to content

Azzedine-prog/command-line-arguments-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Contributors Forks Stargazers Issues MIT License LinkedIn


Command line argument parser

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
  1. About The Project
  2. Getting Started
  3. Usage
  4. License
  5. Contact

About The Project

Product Name Screen Shot

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.

Getting Started

check the test file where an example describing the work of this project. which is easy

Usage

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");
}

License

Distributed under the GNU License. See LICENSE for more information.

Contact

AZZEDINE LAKHDAR - @AZZEDINE_AT_TWITTER - aazzedinelakhdar@gmail.com

Project Link: https://github.com/Azzedine-prog/command-line-arguments-parser

About

c command line parser project

Resources

License

Stars

Watchers

Forks

Packages

No packages published