Giter VIP home page Giter VIP logo

argparse-bash's People

Contributors

alapidas avatar bradshjg avatar catetrai avatar kyrrigle avatar nhoffman avatar rayx avatar snailedlt 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

argparse-bash's Issues

Argparse Action Version Not Supported

When I run my bash script with the version argument, e.g.
parser.add_argument('--version', action='version', version='%(prog)s 1.0.0')
I get the following error:
./argparse.bash: line 60: 0.1: command not found

License

Cool code - What's the license on this?

Exit Code is 1 for Help

Since calling python my_script.py --help return an exit code of 0, shouldn't calling bash my_script.sh --help also return an exit code of 0. Currently, it is documented in the project that an exit of code of 1 will be returned, but I think it should be 0 based on this.

Run the example.sh

Hi

I'm trying to run the example.sh script: bash /home/alu/ekushele/script/bash/conf.sh
I'm getting an error:
/home/alu/ekushele/script/bash/conf.sh: line 28: warning: here-document at line 4 delimited by end-of-file (wanted `EOF')
File "/tmp/tmp.hl53hz9h93", line 25
echo required infile: ""
^
SyntaxError: invalid syntax
: numeric argument requiredash/conf.sh: line 4: exit: 1

What can I do?

Xonsh might be the answer

The proper thing to do would be to abandon *sh altogether, and instead use a scripting language with a proper library for defining a command line interface. Can anyone think of one?

I think that Xonsh (http://xon.sh/) might be able to do that.

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.