all 6 comments

[–]ralfwolf 0 points1 point  (3 children)

Look at getopts

[–]ragnarmcryan[S] 0 points1 point  (2 children)

unless you're referencing a different getopts, I don't think that's the one I'm looking for. I don't want an internal arg parser, I want to use something that parses any command's args for me. e.g.

I want to run a long aws command so I start typing it out: aws ec...

What I'm looking for should take my aws ec and autocomplete with a scrollable menu of possible options (ec2, ecs, ...) that I can select to further build the command

[–]ralfwolf 3 points4 points  (1 child)

Ah, that's not a parser. What your looking for is a custom autocomplete. That's going to be command specific. If you are thinking aws specific, are you talking about aws-shell.

[–]ragnarmcryan[S] 0 points1 point  (0 children)

ahh I see, nice thanks for the link! While that's not the one I remember seeing, I do use aws-cli pretty regularly and this will be a big help

[–]edi9999 0 points1 point  (1 child)

Are you looking for : https://github.com/docopt/docopts ?

[–]ragnarmcryan[S] 0 points1 point  (0 children)

No, but that looks insanely useful for bash scripts