Sealarg | An easy-to-use command-line argument parsing library for C
kandi X-RAY | Sealarg Summary
kandi X-RAY | Sealarg Summary
Sealarg is a C library. Sealarg has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.
Sealarg is a command-line parsing library designed to be as straightforward as possible to use. It is a small wrapper around the POSIX getopt/GNU getopt_long utilities, written to hide the grunt work and learning curve associated with the getopt interface. Skip to the Getting Started section below for a demonstration of Sealarg in action and how to quickly begin integrating the library into your project. While getopt itself is a solid, standardized approach to command-line parsing, learning enough about it to attain a desirable level of robustness can often get in the way of the actual project it's being used in. Getopt has been widely used for decades and inspired many similar libraries in other languages, however other libraries such as Python's argparse have been developed with the intent of providing a much simpler alternative to verbose argument parsing. As such, this library lends much of its design choices to these newer alternative libraries.
Sealarg is a command-line parsing library designed to be as straightforward as possible to use. It is a small wrapper around the POSIX getopt/GNU getopt_long utilities, written to hide the grunt work and learning curve associated with the getopt interface. Skip to the Getting Started section below for a demonstration of Sealarg in action and how to quickly begin integrating the library into your project. While getopt itself is a solid, standardized approach to command-line parsing, learning enough about it to attain a desirable level of robustness can often get in the way of the actual project it's being used in. Getopt has been widely used for decades and inspired many similar libraries in other languages, however other libraries such as Python's argparse have been developed with the intent of providing a much simpler alternative to verbose argument parsing. As such, this library lends much of its design choices to these newer alternative libraries.
Support
Quality
Security
License
Reuse
Support
Sealarg has a low active ecosystem.
It has 1 star(s) with 1 fork(s). There are 1 watchers for this library.
It had no major release in the last 6 months.
There are 8 open issues and 3 have been closed. On average issues are closed in 3 days. There are no pull requests.
It has a neutral sentiment in the developer community.
The latest version of Sealarg is current.
Quality
Sealarg has no bugs reported.
Security
Sealarg has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
License
Sealarg is licensed under the MIT License. This license is Permissive.
Permissive licenses have the least restrictions, and you can use them in most projects.
Reuse
Sealarg releases are not available. You will need to build from source code and install.
Installation instructions, examples and code snippets are available.
Top functions reviewed by kandi - BETA
kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Sealarg
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Sealarg
Sealarg Key Features
No Key Features are available at this moment for Sealarg.
Sealarg Examples and Code Snippets
No Code Snippets are available at this moment for Sealarg.
Community Discussions
No Community Discussions are available at this moment for Sealarg.Refer to stack overflow page for discussions.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Sealarg
The sample code below illustrates just how easy Sealarg is to use in 5 steps. Here our program takes a string as a positional argument and prints it. If the optioanl argument -m/--multiple is used, the program prints out the string as many times as specified by the value passed to the option.
Copy src/sealarg.c and include/sealarg.h into your project folder and add them as dependenices in your Makefile, just like the rest of your code files
Add #include "sealarg.h" to wherever you'll be dealing with command-line arguments- typically this would be the .c file containing your main function
Try compiling to make sure the library can be built alongside your code without any issues. If so, you're ready to start making calls to Sealarg's API and parse some arguments!
Copy src/sealarg.c and include/sealarg.h into your project folder and add them as dependenices in your Makefile, just like the rest of your code files
Add #include "sealarg.h" to wherever you'll be dealing with command-line arguments- typically this would be the .c file containing your main function
Try compiling to make sure the library can be built alongside your code without any issues. If so, you're ready to start making calls to Sealarg's API and parse some arguments!
Support
For any new features, suggestions and bugs create an issue on GitHub.
If you have any questions check and ask questions on community page Stack Overflow .
Find more information at:
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page