Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
opendht
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
opendht
Commits
49129ec1
"git@git.jami.net:savoirfairelinux/jami-client-qt.git" did not exist on "b0f3bc55722f762bf4d787f73d12ea3020006b6a"
Commit
49129ec1
authored
8 years ago
by
Simon Désaulniers
Browse files
Options
Downloads
Patches
Plain Diff
tools: specify optional arg syntax -o[ARG]
parent
80335455
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
doc/dhtnode.1
+3
-3
3 additions, 3 deletions
doc/dhtnode.1
tools/dhtnode.cpp
+1
-1
1 addition, 1 deletion
tools/dhtnode.cpp
tools/tools_common.h
+1
-1
1 addition, 1 deletion
tools/tools_common.h
with
5 additions
and
5 deletions
doc/dhtnode.1
+
3
−
3
View file @
49129ec1
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
.SH SYNOPSIS
.SH SYNOPSIS
.B dhtnode [-h]
.B dhtnode [-h]
.B dhtnode [-v
[\fIlogfile\fP]] [-i] [-d] [-n \fInetwork_id\fP] [-p \fIlocal_port\fP] [-b
[\fIbootstrap_host\fP[:\fIport\fP]]]
.B dhtnode [-v[\fIlogfile\fP]] [-i] [-d] [-n \fInetwork_id\fP] [-p \fIlocal_port\fP] [-b[\fIbootstrap_host\fP[:\fIport\fP]]]
.SH DESCRIPTION
.SH DESCRIPTION
...
@@ -45,7 +45,7 @@ interactive shell:
...
@@ -45,7 +45,7 @@ interactive shell:
Prints some help.
Prints some help.
.TP
.TP
\fB-v\fP
\fIlogfile\fP
\fB-v\fP\fIlogfile\fP
Enable the verbose mode. Optionally provide a log file.
Enable the verbose mode. Optionally provide a log file.
.TP
.TP
...
@@ -66,7 +66,7 @@ the merge of two different networks (available since OpenDHT v0.6.1).
...
@@ -66,7 +66,7 @@ the merge of two different networks (available since OpenDHT v0.6.1).
Use port \fIlocal_port\fP for the program to bind to.
Use port \fIlocal_port\fP for the program to bind to.
.TP
.TP
\fB-b\fP
\fIbootstrap_host\fP[:\fIport\fP]
\fB-b\fP\fIbootstrap_host\fP[:\fIport\fP]
The program needs to be given a node to connect to the network. You use this
The program needs to be given a node to connect to the network. You use this
option to provide the ip address of that node.
option to provide the ip address of that node.
...
...
This diff is collapsed.
Click to expand it.
tools/dhtnode.cpp
+
1
−
1
View file @
49129ec1
...
@@ -29,7 +29,7 @@ extern "C" {
...
@@ -29,7 +29,7 @@ extern "C" {
using
namespace
dht
;
using
namespace
dht
;
void
print_usage
()
{
void
print_usage
()
{
std
::
cout
<<
"Usage: dhtnode [-v
[logfile]] [-i] [-d] [-n network_id] [-p local_port] [-b
[bootstrap_host[:port]]]"
<<
std
::
endl
<<
std
::
endl
;
std
::
cout
<<
"Usage: dhtnode [-v[logfile]] [-i] [-d] [-n network_id] [-p local_port] [-b[bootstrap_host[:port]]]"
<<
std
::
endl
<<
std
::
endl
;
std
::
cout
<<
"dhtnode, a simple OpenDHT command line node runner."
<<
std
::
endl
;
std
::
cout
<<
"dhtnode, a simple OpenDHT command line node runner."
<<
std
::
endl
;
std
::
cout
<<
"Report bugs to: http://opendht.net"
<<
std
::
endl
;
std
::
cout
<<
"Report bugs to: http://opendht.net"
<<
std
::
endl
;
}
}
...
...
This diff is collapsed.
Click to expand it.
tools/tools_common.h
+
1
−
1
View file @
49129ec1
...
@@ -155,7 +155,7 @@ static const constexpr struct option long_options[] = {
...
@@ -155,7 +155,7 @@ static const constexpr struct option long_options[] = {
{
"net"
,
required_argument
,
nullptr
,
'n'
},
{
"net"
,
required_argument
,
nullptr
,
'n'
},
{
"bootstrap"
,
optional_argument
,
nullptr
,
'b'
},
{
"bootstrap"
,
optional_argument
,
nullptr
,
'b'
},
{
"identity"
,
no_argument
,
nullptr
,
'i'
},
{
"identity"
,
no_argument
,
nullptr
,
'i'
},
{
"verbose"
,
n
o_argument
,
nullptr
,
'v'
},
{
"verbose"
,
o
ptional
_argument
,
nullptr
,
'v'
},
{
"daemonize"
,
no_argument
,
nullptr
,
'd'
},
{
"daemonize"
,
no_argument
,
nullptr
,
'd'
},
{
nullptr
,
0
,
nullptr
,
0
}
{
nullptr
,
0
,
nullptr
,
0
}
};
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment