Skip to content

Optrone is a simple argument parser for Anstro Pleuton's programs.

License

Notifications You must be signed in to change notification settings

anstropleuton/optrone

Repository files navigation

Optrone

Optrone is a simple argument parser for Anstro Pleuton's programs. Despite this, it has pretty much all the features you would expect from an argument parser. And more!

Features

  • Long arguments (--argument, --help, etc.)
  • Short arguments (-a, -h, etc.)
  • Combined short arguments (-ah treated as -a and -h)
  • Argument with values (--argument value, -a value, --argument=value, -a=value, etc.)
  • Old Microsoft-style "switches" (/SWITCH, /S, /SWITCH:ON, etc.)

Prerequisite

  • Know to program in C++
  • Know to program in C++23 (optional, recommended)
  • Know to use third party C++ libraries
  • Know to use CMake

Usage

If you are not Anstro Pleuton, which you probably are, here is a quick and rough guide to use my library:

  1. Setup:
    • Clone this repository.
    git clone https://github.com/anstropleuton/optrone.git
    cd optrone
  2. Dependencies
    • Clone/update dependencies
    git submodule update --init --recursive
  3. Build the library:
    • Make build folder:
    mkdir build
    cd build
    • Build the project:
    cmake ..
    cmake --build .
  4. Install (optional, Unix/-like only)
    sudo cmake --install .
    
    Note: To uninstall, use sudo cmake --build . --target uninstall
  5. If you are using CMake, you can use find_package/add_subdirectory or FetchContent_Declare/FetchContent_MakeAvailable, or manually set include and build as include directories and link build/liboptrone.a.

Documentations

Assuming you are in root directory of this project and built the project in build directory, generate documentation using:

cd build
doxygen

Changelog

Refer to the Changelog for info about changes in each version.

Contributing

Check out Guidelines before you submit your code! Make sure to create a branch with one task with the name of the category of your task (i.e., "features/", "bugfix/", etc.) your task before you change the code.

Credits

Thanks to jothepro for the stylesheet Doxygen Awesome for Doxygen.

Thanks to Nuno Pinheiro (can't find link) for the background Elarun. But I did find a KDE store link to the background image. I think you could consider that. If KDE developers are here, I would appreciate your help to find a proper link to the author.

Thanks to GLFW for some code in CMake.

License

This project is licensed under the terms of MIT License, see License.

Junk folder?

That folder is where I put my useless features. Don't use them please.

About

Optrone is a simple argument parser for Anstro Pleuton's programs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published