Comments (6)
Just tested it and it works, thanks man.
from mal.
Thanks for filling this issue. Yes, seems a really old bug of argparse. Some funny answers of people wanting optparser get be un-deprecated.
For now, I don't know any workaround. Maybe would be possible escape the argument as /-Bass
and remove /
internally since this character is not possible inside of username because conflicts with HTTP URL. But this solution is a quite awful... and I think that there is no hope for argparse since is a bug of almost 8 years.
I need think a little about it.
from mal.
Actually, there is a workaround:
mal list --user=-Bass
from mal.
Since this is a problem with argparse and not correlated with mal, I'm closing this. I hope you enjoy the software, @sothym
from mal.
Strange. Why doesn't mal list --user -- -Bass
work? The --
is meant to tell the arg parser that every arg from here on out is to be interpreted literally. I.e. ignore -
. I always implement this in my user interfaces. And it also exists in the coreutils:
cd -- -some-dir # cd to ./-some-dir/
rm -- -r # remove the file named "-r"
ls -l -- -l # lists -l if it exists, in long form
I would absolutely expect an arg parsing library to implement this, so it's strange that it doesn't.
Either way, good workaround.
from mal.
Yes, this is a common thing on gnu stuff, but until I now argparse is not correlated to gnu software.
from mal.
Related Issues (20)
- MAL API it's broken: HTTP 404 HOT 29
- Refactor travis in favour of github actions
- Log in loop due to Attribute Error. HOT 2
- User cannot login if password contains unescaped special characters HOT 1
- Add torrent sub-command HOT 21
- Partial [Start/End] dates cannot be parsed and crash application HOT 5
- Option to disable "back and forth" animation on Windows HOT 8
- Create manpage and distribute with the software HOT 4
- Handle errors better if MyAnimeList API is not accessible HOT 21
- Shouldn't ask for score if score is already given when completing an anime HOT 6
- Store login credentials in encrypted form HOT 15
- [feature request] add 'comments' field to 'edit' function HOT 10
- Document api.py
- [need-update] `anime_regex` is a wrong arg name for search command HOT 3
- [bug] recent change broke search function HOT 5
- Update sphinx docs at /docs before official 0.4.0 release HOT 1
- Abandon appdirs and use ~/.config/mal HOT 10
- [Feature Request] List related anime in extended info HOT 2
- New logo for MAL HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mal.