-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement a primitive version of the Argparse
module
#131
Conversation
Is it usable now? |
Yes, check the example ( |
I can't use it like this |
That's because the argument list is hardcoded in the example. Change it to |
Oh, wait. The interpreter tries to recognize the arguments passed to the program as its own (and fails). So we can't pass command-line arguments to Radon programs yet. |
Yeah, Python is detecting those arguments and parsing with it's internal |
That means we probably need to stop using it ourselves. The CLI isn't that complex so we should be able to rewrite it without argparse |
Yeah, you can try that. |
Can you implement a basic CLI program for demo with all features included which is implemented till now. |
ok |
I made it |
|
|
Elaborate |
I think we need to handle them from |
Yeah but what is the issue? |
Oops, it was my mistake with passing line limit. |
But without a value it is crashing... |
Wrong file name is crashing. |
I know. This is just a PoC of the Argparse, no need to fix that |
Then we need to move all those crash issue to main module, so any user can use it without any issues. |
What are you talking about? |
It's just an example, there's no intent for it to be used as an actual alternative to |
Cool down. I am asking to merge crashing issue which we are handling manually in to |
What crashing issue? You only mentioned it crashing on non-existent files, which is not a concern of Argparse |
I am not asking that. If no value is passed, it will send warning by it self. Also the |
OK, that makes sense now |
No description provided.