cheeplusplus / cheeplusplus/fa-export-cli

CLI Treats Usernames Beginning With Dashes as Options and Crashes

Aperta
#7 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
bug
Lingua principale
TypeScript
Stelle
7
Fork
2
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Inizia individuando il punto di ingresso dell’analisi degli argomenti CLI utilizzato quando si archivia un nome utente. Riproduci il problema con nomi utente che iniziano con uno o più trattini, quindi verifica che tali nomi vengano accettati come nomi utente mentre le opzioni normali continuano a funzionare. L’attività è completata quando i nomi utente FA preceduti da un trattino possono essere archiviati senza essere trattati come opzioni.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
typescript
Ambito
cli
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.