Skip to content

Build out the -h/--help to include some information about origin and version #31

@iconoclasthero

Description

@iconoclasthero

I just spent ca. 5 minutes trying to figure out where this 'totp' command on my machine came from...

I started with:

$ totp --help
usage: totp [-h] {add,-a,show} ...

Print a TOTP token getting the shared key from pass(1).

positional arguments:
  {add,-a,show}
    add (-a)     add a new TOTP entry to the database
    show         (default action) show the current TOTP token for a registered entry

options:
  -h, --help     show this help message and exit

Please include either a --version/-v flag to print the version info OR include it in --help (the latter is more than sufficient).
Please include some sort of origin information in the --help (or, if created and more appropriate, in the --version info) so that one knows the name of the "package" is totp-cli and that it can be found at https://github.com/WhyNotHugo/totp-cli

e.g.,

$ totp --help
totp-cli v. 1.3.0 is a python utility for providing one-time passwords.
See https://github.com/WhyNotHugo/totp-cli for more information.

usage: totp [-h] {add,-a,show} ...

Print a TOTP token getting the shared key from pass(1).

positional arguments:
  {add,-a,show}
    add (-a)     add a new TOTP entry to the database
    show         (default action) show the current TOTP token for a registered entry

options:
  -h, --help     show this help message and exit

or

$ totp --version
totp-cli v. 1.3.0 is a python utility for providing one-time passwords.
See https://github.com/WhyNotHugo/totp-cli for more information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions