mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 18:02:05 -05: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
1 changed files with 4 additions and 4 deletions
|
@ -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…
Add table
Reference in a new issue