-
Notifications
You must be signed in to change notification settings - Fork 77
feat: support -o/--oneline #62
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
base: master
Are you sure you want to change the base?
Conversation
|
Thanks for the PR, I will have to look into it more closely - I want to make sure this matches the output on linux. Could you please post here comparable output of your script and output on some linux distro? Thanks |
1. My mac is 11.7.10 (20G1427)ip link
ip addr
2. My cloud serverip link
ip addr
|
src/ip.py
Outdated
| # Route Module | ||
| @help_msg(do_help_route) | ||
| def do_route(argv, af, json_print, pretty_json): | ||
| def do_route(argv, af, json_print, pretty_json, oneline=False): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need the default value for the new argument, isn't that inconsistent?
If you agree, please remove the default from the other functions as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I add the default value for backwards compatibility.
Are you sure to make it as a required position argument?
|
Thank you, I finally got to this one, please see comments in the review. Can you please as well add similar functionality to the bridge command (it is in separate file)? And secondly, is the -o relevant only for these two commands, or are we leaving some out for now? This is important to at least document in the readme later. |
Done.
It's hard for me the ensure that. |
Closes #17