Last 12 weeks · 0 commits
5 of 6 standards met
Describe the bug For some specific QR Codes that the WeChat scanner can recognize, qr-verify says no but qrcode.atifu.me says yes. QRCode: https://cdn.discordapp.com/attachments/1121837799054778460/1126803629219786866/mid02.png?ex=65c5ed28&is=65b37828&hm=6b1c1295c6ed83fb77b9c7dff6f9251df75950bbb9cccd14e81ccb42b19f9c43& Also, the qr-verify doesn't support set trial times(default value is 37) Reproduction Use the provieded qr code as example System Info Used Package Manager npm Validations [X] Follow our Code of Conduct [X] Read the Contributing Guide. [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate. [X] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead. [X] The provided reproduction is a minimal reproducible of the bug.
Description This PR enhances the CLI argument handling for the project by introducing a more robust parsing mechanism, support for new command-line options, and better integration with the prompts package for interactive user inputs. Specifically, it adds new CLI options for directories and operation modes, implements custom error handling to prevent abrupt exits, and ensures that users are prompted for missing but necessary options. This improves usability and flexibility, allowing for a more guided and configurable experience when using the tool. Linked Issues No specific issues linked, but this addresses a need for better CLI usability and configurability. Additional context The changes include updates to dependencies, notably for enhanced CLI option definitions, and modifications to the CLI initialization and prompt handling logic. By refining the command-line interface, this update aims to make more user-friendly and adaptable to various user scenarios. CHANGES: Updated package.json and pnpm-lock.yaml to include . Introduced to support new CLI options, custom error handling, and moved interactive prompts for missing options. Modified to utilize the improved CLI option handling and prompt logic. Added comprehensive tests in to ensure the new CLI functionalities work as expected and to validate the handling of invalid options. This PR makes significant improvements to the CLI aspect of , offering a more refined and user-centric tool for QR code verification tasks.
Repository: antfu/qr-verify. Description: A CLI to verify scannable QR Code in batch Stars: 119, Forks: 7. Primary language: TypeScript. Languages: TypeScript (98.9%), JavaScript (1.1%). License: MIT. Topics: qrcode. Latest release: v0.2.0 (2y ago). Open PRs: 0, open issues: 1. Last activity: 2y ago. Community health: 85%. Top contributors: antfu, TimotejKovacka.