cheeplusplus / cheeplusplus/fa-export-cli

CLI Treats Usernames Beginning With Dashes as Options and Crashes

Offen
#7 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug
Vorherrschende Sprache
TypeScript
Sterne
7
Forks
2
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

I'm using the v0.0.4 release linux binary on Debian 12 and I have discovered an issue where if I want to try archiving a user who has a username beginning with a "-" character, the tool will try to parse it as option instead of as a username, and error. I've not been able to escape this character through any of the usual means, ' " \, it always interprets it as a non-existent option. It is worth explicitly calling out that names starting with "-" are a valid username, and I'm actually seeing quite a number of users in the wild using it as such. Some users even use "--" or "---", and these also crash the program. Any number of dashes at the start of a name are valid FA usernames.

![image](https://github.com/user-attachments/assets/47a58a41-7d95-4414-90a7-583abb859478)

I will try to take a look at the code, but I'm not a Node developer and a new user to this project, so if you have any insight please feel free to let me know.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Beginne damit, den CLI-Argument-Parsing-Einstiegspunkt zu finden, der beim Archivieren eines Benutzernamens verwendet wird. Reproduziere den Fehler mit Benutzernamen, die mit einem oder mehreren Bindestrichen beginnen, und überprüfe anschließend, dass diese Namen als Benutzernamen akzeptiert werden, während normale Optionen weiterhin funktionieren. Die Aufgabe ist erledigt, wenn FA-Benutzernamen mit vorangestelltem Bindestrich archiviert werden können, ohne als Optionen behandelt zu werden.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
typescript
Bereich
cli
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.