Coder Social home page Coder Social logo

Comments (3)

carlobaldassi avatar carlobaldassi commented on May 28, 2024

Could you explain the rationale for this? I explicitly left out that python feature since the idea of a "required option" seems an oxymoron to me: why not using positional arguments for that?

In the same vein, Python documentation expressly states:

Required options are generally considered bad form because users expect options to be optional, and thus they should be avoided when possible.

In the particular example of input files and output files, those are indeed typically passed as positional arguments, in all applications that I know of.

from argparse.jl.

trevor avatar trevor commented on May 28, 2024

Hi Carlo, thanks for the follow-up.

In some commercial bioinformatics applications (such as those wrapped by Galaxy http://galaxyproject.org/ ) there can be several arguments required, and these are all provided via flag arguments instead of positional arguments.

In my particular case I'm porting an application to Julia and need to maintain the same command-line interface.

from argparse.jl.

carlobaldassi avatar carlobaldassi commented on May 28, 2024

Ok, I'll see if I manage to implement this in a reasonable time frame.

from argparse.jl.

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.