GithubHelp home page GithubHelp logo

Comments (7)

brianmay avatar brianmay commented on May 26, 2024

https://github.com/docopt/docopt might be a good choice.

from sshuttle.

brianmay avatar brianmay commented on May 26, 2024

Would also consider argparse, if anybody wants to submit a patch :-)

from sshuttle.

vieira avatar vieira commented on May 26, 2024

I will take a look. I am more inclined to argparse as it is part of the standard library and using it instead of docopt would avoid the extra dependency.

I am also thinking of using argparse together with configparser so we could set some (or all or none) options in a configuration file. It would make life easier for people who use it as a daemon and would be more straightforward to package (?).

What do you think?

from sshuttle.

brianmay avatar brianmay commented on May 26, 2024

Yes, I would prefer argparse, I think it will be the more flexible solution in the long run; It probably will be worth the effort. I have had a look at docopt, however think what I have is a mess - possibly because I have never used docopt before.

configparser does sound like a good idea. There use to be config file processing specific to the packaging stuff I removed in 974f9ae - so you might want to look at that too (despite some rather strange quirks). I think the idea was you could configure multiple tunnels and have an init.d script automatically bring them up at system boot.

from sshuttle.

vieira avatar vieira commented on May 26, 2024

I have something working with argparse since last weekend but did not have the time this week to make any progress. Still needs testing, bug fixing and some polishing. I will probably leave configparser for another PR.

from sshuttle.

brianmay avatar brianmay commented on May 26, 2024

Thanks for the update.

from sshuttle.

brianmay avatar brianmay commented on May 26, 2024

Think I can close this now #82 merged.

from sshuttle.

Related Issues (20)

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.