Giter Club home page Giter Club logo

dropt's Introduction

About Me

I am the author of the dropt command-line option parsing library.

Former software engineer at Google.

I was a software engineer at VMware for many years, where I was a Windows UI developer on VMware Workstation, VMware Player, and VMware Remote Console (VMRC). I wrote VMware KVM.

Before that, I worked for Sony Electronics writing Palm OS software for its CLIÉ line of PDAs.

dropt's People

Contributors

dcristoloveanu avatar jamesderlin avatar kolanich avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

dropt's Issues

cmake

It would be awesome if cmake support would be added. If you are open to that I can PR the change.

Thanks,
/Dan

Create Debian package for better project adoption

Currently, dropt isn't available as debian package: https://packages.debian.org/search?suite=default&section=all&arch=any&searchon=names&keywords=dropt.

This project seems useful, I've found it, when I was looking for better alternative to GNU getopt.

Open-source developers want to get their software packaged into official distribution repositories, because it makes it easier for users to use their software. And, it is much more complicated to package software, which uses library, which isn't in official distribution repositories.

Debian packages are automatically imported into Ubuntu package archives, which is one of the most popular distributions.

You should also consider getting project into official repositories of other distributions. I'm creating issue for Debian only, as I use Debian based distributions.

Suggestion: Pass dropt_option to handlers

Not an issue but a suggestion. If you allow passing of dropt_option with the current option to the handlers then it becomes possible to write a single generic handler. E.g.:

... my_generic_handler(..., dropt_option *option, ...) {
switch(option->short_name) {
case 'x':
...
break;
}
..
}

Why do this? I am writing an application that executes commands. The commands are specified on the command line in the order of execution, and there may be multiple of the same command. E.g.:

MyApp --reset --read --reset --write --settime=3 --write --settime=4 --write

By using a generic handler I can call it for multiple command line options and build a linked list of commands to execute, and I only have to write the handler code once. Note - inside my generic handler I make a call to the built-in handlers, e.g. option->handler();

Thanks.

option for required argument?

I am looking for a way to make an argument required. I see the dropt_attr_optional_val but can you add a required version?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.