nhoffman / argparse-bash

Use python's argparse module in shell scripts
MIT License
166 stars 27 forks source link

Print function name when using argparse() with shell functions #13

Closed rayx closed 4 months ago

rayx commented 5 years ago

When using argparse() to parse arguments of a shell function, it printed "bash", instead of function name, in usage message. The change fixes it.

rayx commented 5 years ago

Just to explain my use case...I use command line heavily. I implement frequently used operations in shell functions and run them interactively in shell. The overhead of starting Python process when running each shell function is not an issue in my case.

nhoffman commented 4 months ago

Merged, thanks!