Skip to content
/ palc Public

palc offers a simple way to parse command line arguments while maintaining compatibility with the clap derive API. Explore the examples to see how easily you can switch between palc and clap in your projects. 🐙✨

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

yolyos/palc

Repository files navigation

palc - A Unique Command Line Argument Parser 🎉

Welcome to the palc repository! This project is a prototype of a command line argument parser designed with distinct goals that contrast with popular libraries like clap. Here, we aim to provide a flexible and intuitive way to handle command line inputs while focusing on simplicity and usability.


Table of Contents


Features

  • Simple Syntax: Designed for ease of use with straightforward command line inputs.
  • Customizable Options: Easily define and modify argument types to suit your needs.
  • Lightweight: Minimal overhead for quick parsing without unnecessary complexity.
  • User-Friendly: Intuitive error messages and help outputs to guide users.

Installation

To get started with palc, you can download the latest release from our Releases page. Simply download the appropriate file for your operating system and execute it to begin using the parser.


Usage

Using palc is straightforward. Here’s a simple example to illustrate how you can get started:

./palc --input file.txt --output result.txt

This command specifies an input file and an output file, which palc will process according to your defined rules.


Design Goals

palc is built with several core design goals in mind:

  1. Simplicity: We prioritize a clean and understandable interface.
  2. Flexibility: Users can easily extend the parser to accommodate new argument types.
  3. Performance: The parser is optimized for speed and efficiency, making it suitable for high-demand applications.

Examples

Here are a few examples to demonstrate how palc can be used in various scenarios:

Basic Argument Parsing

./palc --name John --age 30

This command will accept two arguments: name and age. The parser will then process these inputs and provide feedback based on the logic you implement.

Advanced Features

You can also implement flags and optional arguments:

./palc --verbose --config config.yaml

In this case, the --verbose flag will trigger detailed output, while the --config argument specifies a configuration file.


Contributing

We welcome contributions to palc! If you have ideas for improvements or new features, please fork the repository and submit a pull request.

Steps to Contribute

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature/YourFeature).
  3. Make your changes.
  4. Commit your changes (git commit -m 'Add some feature').
  5. Push to the branch (git push origin feature/YourFeature).
  6. Open a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.


Releases

For the latest updates and versions of palc, please visit our Releases page. Here, you can download the latest files and check for any new features or bug fixes.


Conclusion

Thank you for checking out palc! We hope this tool simplifies your command line argument parsing needs. Feel free to reach out with any questions or suggestions. Happy coding!

About

palc offers a simple way to parse command line arguments while maintaining compatibility with the clap derive API. Explore the examples to see how easily you can switch between palc and clap in your projects. 🐙✨

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •