argparse-bash icon indicating copy to clipboard operation
argparse-bash copied to clipboard

Print function name when using argparse() with shell functions

Open rayx opened this issue 6 years ago • 1 comments

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 avatar Jan 19 '19 14:01 rayx

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.

rayx avatar Jan 19 '19 14:01 rayx

Merged, thanks!

nhoffman avatar Apr 28 '24 18:04 nhoffman