cheeplusplus / cheeplusplus/fa-export-cli
CLI Treats Usernames Beginning With Dashes as Options and Crashes
- Linguagem predominante
- TypeScript
- Estrelas
- 7
- Forks
- 2
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
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.

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.
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Direção de pesquisa
Comece localizando o ponto de entrada da análise de argumentos da CLI usado ao arquivar um nome de usuário. Reproduza a falha com nomes de usuário que começam com um ou mais hífens e, em seguida, verifique se esses nomes são aceitos como nomes de usuário enquanto as opções normais continuam funcionando. A tarefa estará concluída quando nomes de usuário FA prefixados por hífen puderem ser arquivados sem serem tratados como opções.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- typescript
- Domínio
- cli
- Tipo de issue
- Bug
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 35/100