Skip to content

simple and compact c argument-parsing libary

Notifications You must be signed in to change notification settings

Reneisda/argprs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Argument parsing libary

  • Supports:
    • linux
    • win
    • mac-os

no extra dependencies needed

Example adding arguments

    arguments_t args;
    arg_init(args, "Program_Name", "VERSION", 2);
    arg_add(args, 'h', "help", "prints help", 0);
    arg_add(args, 'a', "add", "adds a password to the database", 1);

Example parsing arguments

    result_set_t parsed_arguments;
    res_init(parsed_arguments);
    arg_parse(args, parsed_arguments, argc, argv);

Auto generated help

    arg_print_help(args);

About

simple and compact c argument-parsing libary

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published