$ cli2man haiti
File "/tmp/venv/bin/cli2man", line 1376
os.chmod(opt['--create-script'], st.st_mode | 0111 )
^
SyntaxError: leading zeros in decimal integer literals are not permitted; use an 0o prefix for octal integers
haiti use docopt
$ haiti --help
HAITI (HAsh IdenTifIer) v1.4.1
Usage:
haiti [options] <hash>
haiti samples (<ref> | <name>)
haiti -h | --help
haiti --version
Commands:
samples Display hash samples for the given type
Parameters:
<hash> Hash string to identify, read from STDIN if equal to "-"
<ref> hashcat or john the ripper reference
<name> Hash type name
Options:
--no-color Disable colorized output
-e, --extended List all possible hash algorithms including ones using salt
--short Display in a short format: do not display hashcat and john the ripper references
--hashcat-only Show only hashcat references
--john-only Show only john the ripper references
--debug Display arguments
-h, --help Show this screen
--version Show version
Examples:
haiti -e d41d8cd98f00b204e9800998ecf8427e
haiti --no-color --short d41d8cd98f00b204e9800998ecf8427e
b2sum /etc/os-release | awk '{print $1}' | haiti -
haiti samples crc32
But I guess it's rather due to using python 2 cf. #11
haiti use docopt
But I guess it's rather due to using python 2 cf. #11