[![Stand With Ukraine](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/badges/StandWithUkraine.svg)](https://stand-with-ukraine.pp.ua)
<!-- [![Github all releases](https://img.shields.io/github/downloads/scito/extract_otp_secrets/total.svg)](https://GitHub.com/scito/extract_otp_secrets/releases/) -->
@ -119,9 +119,8 @@ However, the bare executable can be executed from the command line:
1. Download executable for macOS platform from [latest release](https://github.com/scito/extract_otp_secrets/releases/latest), see assets
2. Open `Terminal` application
3. Change to Downloads folder in Terminal: `cd $HOME/Downloads`
4. Remove quarantine bit for the downloaded file: `xattr -r -d com.apple.quarantine extract_otp_secrets_X.Y.Z_macos_x86_64`
5. Set executable bit for the downloaded file: `chmod +x extract_otp_secrets_X.Y.Z_macos_x86_64`
6. Start executable from command line: `./extract_otp_secrets_X.Y.Z_macos_x86_64`
4. Set executable bit for the downloaded file: `chmod +x extract_otp_secrets_X.Y.Z_macos_x86_64`
5. Start executable from command line: `./extract_otp_secrets_X.Y.Z_macos_x86_64`
:information_source: Replace `X.Y.Z` in above commands with the version number of your downloaded file, e.g. `extract_otp_secrets_2.4.0_macos_x86_64`
@ -235,7 +234,7 @@ OpenCV requires [Visual C++ redistributable 2015](https://www.microsoft.com/en-u
* extract_otp_secrets_macos_x86_64 (optional [libzbar](#installation-of-optional-shared-system-libraries-recommended) needs to be installed manually if needed)
* extract_otp_secrets_macos_x86_64.dmg N/A, see [why](#macos)
arg_parser.add_argument('infile',help="""a) file or - for stdin with 'otpauth-migration://...' URLs separated by newlines, lines starting with # are ignored;
b)imagefilecontainingaQRcodeor=forstdinforanimagecontainingaQRcode""", nargs='*' if cv2_available else '+')
arg_parser.add_argument('--csv','-c',help='export csv file, or - for stdout',metavar=('FILE'))
arg_parser.add_argument('--csv','-c',help='export csv file or - for stdout',metavar=('FILE'))
arg_parser.add_argument('--keepass','-k',help='export totp/hotp csv file(s) for KeePass, - for stdout',metavar=('FILE'))
arg_parser.add_argument('--json','-j',help='export json file or - for stdout',metavar=('FILE'))
arg_parser.add_argument('--txt','-t',help='export txt file or - for stdout',metavar=('FILE'))
arg_parser.add_argument('--urls','-u',help='export file with list of otpauth urls, or - for stdout',metavar=('FILE'))
arg_parser.add_argument('--printqr','-p',help='print QR code(s) as text to the terminal',action='store_true')
arg_parser.add_argument('--saveqr','-s',help='save QR code(s) as images to directory',metavar=('DIR'))
ifcv2_available:
@ -303,18 +315,17 @@ b) image file containing a QR code or = for stdin for an image containing a QR c
output_group.add_argument('-q','--quiet',help='no stdout output, except output set by -',action='store_true')
# In some cases importlib cannot properly detect package version, for example it was compiled into executable file, so it uses some custom import mechanism.
# Instead, use pkg_resources which is included in setuptools (but has a significant runtime cost)