Skip to main content

New answers tagged

2 votes

Python secrets command-line tool

Consider using docopt to create beautiful command-line interfaces Whenever you are creating a command-line utility, consider using the docopt module. All you need to do is create a usage string and ...
MrWonderful's user avatar
7 votes

Python secrets command-line tool

print(secrets.token_bytes(int(args[i+1]))) doesn't particularly work, or at least not in a form I'd expect. It's possible for a script to want to call this and ...
Reinderien's user avatar
  • 62.5k
5 votes

Python secrets command-line tool

Unreachable code I think the following condition can never be true: if len(sys.argv) == 0: argv will always have a length ...
toolic's user avatar
  • 3,741
16 votes
Accepted

Python secrets command-line tool

UX for the CLI some commands you can run with this tool: sct -tokenhex 8, ... That's nice. But wouldn't you like to also expose ...
J_H's user avatar
  • 29.3k

Top 50 recent answers are included