Skip to content

Commit

Permalink
fixed NOFILE command line argument
Browse files Browse the repository at this point in the history
  • Loading branch information
zonyitoo committed Oct 7, 2022
1 parent 91b3bfa commit 6c5882e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/service/local.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ pub fn define_command_line_options(mut app: Command) -> Command {
.long("nofile")
.num_args(1)
.action(ArgAction::Set)
.value_parser(clap::value_parser!(u64))
.help("Set RLIMIT_NOFILE with both soft and hard limit"),
);
}
Expand Down
1 change: 1 addition & 0 deletions src/service/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ pub fn define_command_line_options(mut app: Command) -> Command {
.long("nofile")
.num_args(1)
.action(ArgAction::Set)
.value_parser(clap::value_parser!(u64))
.help("Set RLIMIT_NOFILE with both soft and hard limit"),
);
}
Expand Down
1 change: 1 addition & 0 deletions src/service/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ pub fn define_command_line_options(mut app: Command) -> Command {
.long("nofile")
.num_args(1)
.action(ArgAction::Set)
.value_parser(clap::value_parser!(u64))
.help("Set RLIMIT_NOFILE with both soft and hard limit"),
);
}
Expand Down

0 comments on commit 6c5882e

Please sign in to comment.