jazz icon indicating copy to clipboard operation
jazz copied to clipboard

clap-like cli.scl command line args and help generator library for apps

Open naturallymitchell opened this issue 5 years ago • 6 comments

https://docs.rs/clap/2.32.0/clap/

https://stackoverflow.com/questions/9725675/is-there-a-standard-format-for-command-line-shell-help-text

https://github.com/mpeterv/argparse https://github.com/docopt/docopt.lua https://github.com/chef/mixlib-cli

https://www.reddit.com/r/lua/comments/ommzuu/lua_for_shell_scripting/

naturallymitchell avatar Dec 17 '18 18:12 naturallymitchell

argparse is a whole parser. it makes more sense to use clap bindings for parsing this type of input in Rust

naturallymitchell avatar Dec 18 '18 22:12 naturallymitchell

I think we mainly need this issue https://docs.rs/clap/2.32.0/clap/struct.App.html#method.get_matches_safe

naturallymitchell avatar Dec 21 '18 22:12 naturallymitchell

afaict, we need clap.from_yaml(), clap.get_matches_safe(), usage and help. anything else? and would it work?

naturallymitchell avatar Dec 22 '18 00:12 naturallymitchell

question of would it work, how do we pass the get_matches_safe() to lua?

naturallymitchell avatar Dec 22 '18 00:12 naturallymitchell

How will you use the result of get_matches_safe() in lua?

juchiast avatar Dec 27 '18 03:12 juchiast

https://github.com/foundpatterns/torchbear-libs/issues/1

naturallymitchell avatar Jan 11 '19 21:01 naturallymitchell