moonstream-to / moonworm

codegen for crypto degens and other ethereum smart contract toolkit for python
Apache License 2.0
36 stars 7 forks source link

Make `-v` `--version` argument #37

Closed Yhtiyar closed 2 years ago

Yhtiyar commented 2 years ago

Need to provide ability to get version of moonworm from cli

twelsh37 commented 2 years ago

Id like to take a stab at this. I'm guessing it shouldgo in cli.py

Yhtiyar commented 2 years ago

@twelsh37, cool. Yes, it will go to cli.py Basically moonworm -v should print current version from version.py

zomglings commented 2 years ago

@twelsh37 , @Yhtiyar : It might be easier to add a subcommand called moonworm version. Getting the right behaviour for moonworm -v requires messing with argparse actions, which can be kind of a pain.

Yhtiyar commented 2 years ago

resolved in #68