summaryrefslogtreecommitdiff
path: root/Userland/Utilities
diff options
context:
space:
mode:
authorMaciej Zygmanowski <sppmacd@pm.me>2021-06-04 18:15:33 +0200
committerAli Mohammad Pur <Ali.mpfard@gmail.com>2021-06-05 23:51:08 +0430
commit104dc93220861081cb1a95210c7f8fe0ddcff3e6 (patch)
tree138d705375ce9b5433752bc9f0a1397c2e4a43f1 /Userland/Utilities
parentf8f36effc9d3fdcf8b780ea2c80bf2fbf9241b8a (diff)
downloadserenity-104dc93220861081cb1a95210c7f8fe0ddcff3e6.zip
ifconfig: Use shorter argument names
The previous argument names were so long that they won't fit into the terminal, making help message unreadable.
Diffstat (limited to 'Userland/Utilities')
-rw-r--r--Userland/Utilities/ifconfig.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Utilities/ifconfig.cpp b/Userland/Utilities/ifconfig.cpp
index 24330ddceb..f62a971274 100644
--- a/Userland/Utilities/ifconfig.cpp
+++ b/Userland/Utilities/ifconfig.cpp
@@ -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) {