Skip to content

Commit

Permalink
Refactoring of command-line argument.
Browse files Browse the repository at this point in the history
  • Loading branch information
interkosmos committed Jul 10, 2024
1 parent 16371ed commit 8f74c1a
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion adoc/dmbeat.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ for testing.
RPC API password. Be aware that passing the credentials via command-line
arguments is insecure and only recommended for testing.

*--port*, *-p* _port_::
*--port*, *-q* _port_::
Port of RPC API server. The default is 0 (automatic selection depending on
protocol).

Expand Down
2 changes: 1 addition & 1 deletion adoc/dmsync.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ for testing.
RPC API password. Be aware that passing the credentials via command-line
arguments is insecure and only recommended for testing.

*--port*, *-p* _port_::
*--port*, *-q* _port_::
Port of RPC API server. The default is `0`, which selects the port
automatically depending on the protocol.

Expand Down
2 changes: 1 addition & 1 deletion app/dmbeat.f90
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ integer function read_args(app) result(rc)
arg_type('logger', short='l', type=ARG_TYPE_ID), & ! -l, --logger <id>
arg_type('node', short='N', type=ARG_TYPE_ID), & ! -N, --node <id>
arg_type('host', short='H', type=ARG_TYPE_STRING), & ! -H, --host <string>
arg_type('port', short='p', type=ARG_TYPE_INTEGER), & ! -p, --port <n>
arg_type('port', short='q', type=ARG_TYPE_INTEGER), & ! -q, --port <n>
arg_type('tls', short='X', type=ARG_TYPE_LOGICAL), & ! -X, --tls
arg_type('username', short='U', type=ARG_TYPE_STRING), & ! -U, --username <string>
arg_type('password', short='P', type=ARG_TYPE_STRING), & ! -P, --password <string>
Expand Down
2 changes: 1 addition & 1 deletion app/dmsync.f90
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ integer function read_args(app) result(rc)
arg_type('database', short='d', type=ARG_TYPE_DB), & ! -d, --database <path>
arg_type('type', short='t', type=ARG_TYPE_STRING), & ! -t, --type log|observ
arg_type('host', short='H', type=ARG_TYPE_STRING), & ! -H, --host <string>
arg_type('port', short='p', type=ARG_TYPE_INTEGER), & ! -p, --port <n>
arg_type('port', short='q', type=ARG_TYPE_INTEGER), & ! -q, --port <n>
arg_type('username', short='U', type=ARG_TYPE_STRING), & ! -U, --username <string>
arg_type('password', short='P', type=ARG_TYPE_STRING), & ! -P, --password <string>
arg_type('interval', short='I', type=ARG_TYPE_INTEGER), & ! -I, --interval <n>
Expand Down
6 changes: 3 additions & 3 deletions man/dmbeat.1
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
.\" Title: dmbeat
.\" Author: Philipp Engel
.\" Generator: Asciidoctor 2.0.23
.\" Date: 2024-04-23
.\" Date: 2024-07-10
.\" Manual: User Commands
.\" Source: DMBEAT
.\" Language: English
.\"
.TH "DMBEAT" "1" "2024-04-23" "DMBEAT" "User Commands"
.TH "DMBEAT" "1" "2024-07-10" "DMBEAT" "User Commands"
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.ss \n[.ss] 0
Expand Down Expand Up @@ -105,7 +105,7 @@ RPC API password. Be aware that passing the credentials via command\-line
arguments is insecure and only recommended for testing.
.RE
.sp
\fB\-\-port\fP, \fB\-p\fP \fIport\fP
\fB\-\-port\fP, \fB\-q\fP \fIport\fP
.RS 4
Port of RPC API server. The default is 0 (automatic selection depending on
protocol).
Expand Down
6 changes: 3 additions & 3 deletions man/dmsync.1
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
.\" Title: dmsync
.\" Author: Philipp Engel
.\" Generator: Asciidoctor 2.0.23
.\" Date: 2024-04-23
.\" Date: 2024-07-10
.\" Manual: User Commands
.\" Source: DMSYNC
.\" Language: English
.\"
.TH "DMSYNC" "1" "2024-04-23" "DMSYNC" "User Commands"
.TH "DMSYNC" "1" "2024-07-10" "DMSYNC" "User Commands"
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.ss \n[.ss] 0
Expand Down Expand Up @@ -129,7 +129,7 @@ RPC API password. Be aware that passing the credentials via command\-line
arguments is insecure and only recommended for testing.
.RE
.sp
\fB\-\-port\fP, \fB\-p\fP \fIport\fP
\fB\-\-port\fP, \fB\-q\fP \fIport\fP
.RS 4
Port of RPC API server. The default is \f(CR0\fP, which selects the port
automatically depending on the protocol.
Expand Down

0 comments on commit 8f74c1a

Please sign in to comment.