mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-29 22:24:08 +03:00
ifconfig: Use shorter argument names
The previous argument names were so long that they won't fit into the terminal, making help message unreadable.
This commit is contained in:
parent
f8f36effc9
commit
104dc93220
Notes:
sideshowbarker
2024-07-18 16:50:22 +09:00
Author: https://github.com/sppmacd Commit: https://github.com/SerenityOS/serenity/commit/104dc932208 Pull-request: https://github.com/SerenityOS/serenity/pull/7783
@ -30,10 +30,10 @@ int main(int argc, char** argv)
|
||||
|
||||
Core::ArgsParser args_parser;
|
||||
args_parser.set_general_help("Display or modify the configuration of each network interface.");
|
||||
args_parser.add_option(value_ipv4, "Set the IP address of the selected network", "ipv4", 'i', "The new IP of the network");
|
||||
args_parser.add_option(value_adapter, "Select a specific network adapter to configure", "adapter", 'a', "The name of a network adapter");
|
||||
args_parser.add_option(value_gateway, "Set the default gateway of the selected network", "gateway", 'g', "The new IP of the gateway");
|
||||
args_parser.add_option(value_mask, "Set the network mask of the selected network", "mask", 'm', "The new network mask");
|
||||
args_parser.add_option(value_ipv4, "Set the IP address of the selected network", "ipv4", 'i', "ip");
|
||||
args_parser.add_option(value_adapter, "Select a specific network adapter to configure", "adapter", 'a', "adapter");
|
||||
args_parser.add_option(value_gateway, "Set the default gateway of the selected network", "gateway", 'g', "gateway");
|
||||
args_parser.add_option(value_mask, "Set the network mask of the selected network", "mask", 'm', "mask");
|
||||
args_parser.parse(argc, argv);
|
||||
|
||||
if (!value_ipv4 && !value_adapter && !value_gateway && !value_mask) {
|
||||
|
Loading…
Reference in New Issue
Block a user