diff options
author | Fabian Dellwing <fabian.dellwing@gmail.com> | 2023-04-14 11:34:16 +0200 |
---|---|---|
committer | Andrew Kaster <andrewdkaster@gmail.com> | 2023-04-26 12:33:25 -0600 |
commit | 552e317a89244a1bc3557786fec3f19b40f8ae13 (patch) | |
tree | 1d8eb8f6b05e10a76afac23914df6638d2adba05 /Userland | |
parent | f61947fa9eb8ebc288e3f627897d0b4e3b4dd8e1 (diff) | |
download | serenity-552e317a89244a1bc3557786fec3f19b40f8ae13.zip |
nc: Sort command line arguments alphabetically
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Utilities/nc.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Utilities/nc.cpp b/Userland/Utilities/nc.cpp index 7ea01aeccd..068b8a86ce 100644 --- a/Userland/Utilities/nc.cpp +++ b/Userland/Utilities/nc.cpp @@ -55,11 +55,11 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) Core::ArgsParser args_parser; args_parser.set_general_help("Network cat: Connect to network sockets as if it were a file."); + args_parser.add_option(maximum_tcp_receive_buffer_size_input, "Set maximum tcp receive buffer size", "length", 'I', nullptr); args_parser.add_option(should_listen, "Listen instead of connecting", "listen", 'l'); - args_parser.add_option(verbose, "Log everything that's happening", "verbose", 'v'); - args_parser.add_option(udp_mode, "UDP mode", "udp", 'u'); args_parser.add_option(should_close, "Close connection after reading stdin to the end", nullptr, 'N'); - args_parser.add_option(maximum_tcp_receive_buffer_size_input, "Set maximum tcp receive buffer size", "length", 'I', nullptr); + args_parser.add_option(udp_mode, "UDP mode", "udp", 'u'); + args_parser.add_option(verbose, "Log everything that's happening", "verbose", 'v'); args_parser.add_positional_argument(target, "Address to listen on, or the address or hostname to connect to", "target"); args_parser.add_positional_argument(port, "Port to connect to or listen on", "port"); args_parser.parse(arguments); |