bwhmather / ssort

Tool for automatically sorting python statements within a module
MIT License
359 stars 10 forks source link

Enhancement request: A `--version` switch would be useful #110

Closed kseistrup closed 10 months ago

kseistrup commented 10 months ago

This enhancement request is valid as of commit 018ca2d1a499f4a5074629eaaa95f0c7f2134f1c

Please provide a -V/--version switch that prints the executable's name and version (and possibly version date) to standard output and exits successfully.

E.g.:

» ssort --version
ssort v0.12.3 (2024-01-21)
#              ^^^^^^^^^^
#               ISO 8601

Such a switch is useful for:

PS: I suggest using a capital -V for the short option. That way the lowercase -v is still available for a potentially future option that will be used more frequently (e.g., --verbose) than the version switch.

Cheers.

bwhmather commented 10 months ago

I can't think of any reason why not. Fixed in https://github.com/bwhmather/ssort/pull/111.

Cheers.

bwhmather commented 10 months ago

(published in 0.12.3)