piccolo-orm / targ

Python CLI using type hints and docstrings.
https://targ.readthedocs.io/en/latest/index.html
MIT License
20 stars 2 forks source link

Allow equals sign to be omitted for named arguments #16

Open dantownsend opened 2 years ago

dantownsend commented 2 years ago

You currently have to use an equals sign when passing in a named argument:

python main.py my_command --desc="some message"

This can lead to confusion when people omit it, using this format instead:

python main.py my_command --desc "some message"

It would be good to support both formats.

Originally reported here: https://github.com/piccolo-orm/piccolo/issues/418

akankshasainics commented 2 years ago

Hello! Can I work on this ?

dantownsend commented 2 years ago

@akankshasainics Yes, that would be good. It might be quite a challenging issue though!

akankshasainics commented 2 years ago

Thanks, I will try.