--exclude-command not affecting commands in extract operation (such as enjarify in dex comparator)
when comparing APK files I want to exclude dex to jar operation by enjarify tool in dex comparator (which takes lot of time including the resulting classes.jar compare using java decompiler procyon), but running:
diffoscope --progress --debug --text R.txt --exclude-command '.*enjarify.*' App1.apk App2.apk
will still run the enjarify tool, so I used instead:
diffoscope --progress --debug --text R3.txt --exclude-command '^(procyon|javap).*' App1.apk App2.apk
which avoided the tools in java comparator, but the desired solution was to avoid the dex comparator.
while it's possible to use --exclude '*.dex'
or --max-container-depth 2
which might have the same affect on some APKs (no decompiling of DEX files), it won't on others (such as DEX files not in .dex extension or nested inside archives, etc...)