Skip to content

Commit

Permalink
Merge pull request #1069 from tjkirch/apiclient-s
Browse files Browse the repository at this point in the history
apiclient: accept -s for --socket-path, as per usage message
  • Loading branch information
tjkirch authored Aug 24, 2020
2 parents f6d9fcd + 7189946 commit 12cf806
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sources/api/apiclient/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ fn parse_args(args: env::Args) -> Args {
match arg.as_ref() {
"-v" | "--verbose" => verbosity += 1,

"--socket-path" => {
"-s" | "--socket-path" => {
socket_path = Some(
iter.next()
.unwrap_or_else(|| usage_msg("Did not give argument to --socket-path")),
.unwrap_or_else(|| usage_msg("Did not give argument to -s | --socket-path")),
)
}

Expand Down

0 comments on commit 12cf806

Please sign in to comment.