Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mybee
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
mybee
Commits
4cf7fe16
Unverified
Commit
4cf7fe16
authored
Jul 01, 2020
by
Janoš Guljaš
Committed by
GitHub
Jul 01, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
consistency in cli boolean flags (#398)
parent
d99881a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
start.go
cmd/bee/cmd/start.go
+10
-10
No files found.
cmd/bee/cmd/start.go
View file @
4cf7fe16
...
...
@@ -33,15 +33,15 @@ func (c *command) initStartCmd() (err error) {
optionNameAPIAddr
=
"api-addr"
optionNameP2PAddr
=
"p2p-addr"
optionNameNATAddr
=
"nat-addr"
optionNameP2P
EnableWS
=
"p2p-enable-ws
"
optionNameP2P
EnableQUIC
=
"p2p-enable-quic
"
optionName
EnableDebugAPI
=
"enable-debug-api
"
optionNameP2P
WSEnable
=
"p2p-ws-enable
"
optionNameP2P
QUICEnable
=
"p2p-quic-enable
"
optionName
DebugAPIEnable
=
"debug-api-enable
"
optionNameDebugAPIAddr
=
"debug-api-addr"
optionNameBootnodes
=
"bootnode"
optionNameNetworkID
=
"network-id"
optionWelcomeMessage
=
"welcome-message"
optionCORSAllowedOrigins
=
"cors-allowed-origins"
optionNameTracingEnabled
=
"tracing"
optionNameTracingEnabled
=
"tracing
-enable
"
optionNameTracingEndpoint
=
"tracing-endpoint"
optionNameTracingServiceName
=
"tracing-service-name"
optionNameVerbosity
=
"verbosity"
...
...
@@ -90,7 +90,7 @@ Welcome to the Swarm.... Bzzz Bzzzz Bzzzz
fmt
.
Println
(
bee
)
debugAPIAddr
:=
c
.
config
.
GetString
(
optionNameDebugAPIAddr
)
if
!
c
.
config
.
GetBool
(
optionName
EnableDebugAPI
)
{
if
!
c
.
config
.
GetBool
(
optionName
DebugAPIEnable
)
{
debugAPIAddr
=
""
}
...
...
@@ -119,8 +119,8 @@ Welcome to the Swarm.... Bzzz Bzzzz Bzzzz
DebugAPIAddr
:
debugAPIAddr
,
Addr
:
c
.
config
.
GetString
(
optionNameP2PAddr
),
NATAddr
:
c
.
config
.
GetString
(
optionNameNATAddr
),
EnableWS
:
c
.
config
.
GetBool
(
optionNameP2P
EnableWS
),
EnableQUIC
:
c
.
config
.
GetBool
(
optionNameP2P
EnableQUIC
),
EnableWS
:
c
.
config
.
GetBool
(
optionNameP2P
WSEnable
),
EnableQUIC
:
c
.
config
.
GetBool
(
optionNameP2P
QUICEnable
),
NetworkID
:
c
.
config
.
GetUint64
(
optionNameNetworkID
),
WelcomeMessage
:
c
.
config
.
GetString
(
optionWelcomeMessage
),
Bootnodes
:
c
.
config
.
GetStringSlice
(
optionNameBootnodes
),
...
...
@@ -180,10 +180,10 @@ Welcome to the Swarm.... Bzzz Bzzzz Bzzzz
cmd
.
Flags
()
.
String
(
optionNameAPIAddr
,
":8080"
,
"HTTP API listen address"
)
cmd
.
Flags
()
.
String
(
optionNameP2PAddr
,
":7070"
,
"P2P listen address"
)
cmd
.
Flags
()
.
String
(
optionNameNATAddr
,
""
,
"NAT exposed address"
)
cmd
.
Flags
()
.
Bool
(
optionNameP2P
EnableWS
,
false
,
"disable P2P WebSocket protocol
"
)
cmd
.
Flags
()
.
Bool
(
optionNameP2P
EnableQUIC
,
false
,
"disable P2P QUIC protocol
"
)
cmd
.
Flags
()
.
Bool
(
optionNameP2P
WSEnable
,
false
,
"enable P2P WebSocket transport
"
)
cmd
.
Flags
()
.
Bool
(
optionNameP2P
QUICEnable
,
false
,
"enable P2P QUIC transport
"
)
cmd
.
Flags
()
.
StringSlice
(
optionNameBootnodes
,
[]
string
{
"/dnsaddr/bootnode.ethswarm.org"
},
"initial nodes to connect to"
)
cmd
.
Flags
()
.
Bool
(
optionName
EnableDebugAPI
,
false
,
"enable debug HTTP API"
)
cmd
.
Flags
()
.
Bool
(
optionName
DebugAPIEnable
,
false
,
"enable debug HTTP API"
)
cmd
.
Flags
()
.
String
(
optionNameDebugAPIAddr
,
":6060"
,
"debug HTTP API listen address"
)
cmd
.
Flags
()
.
Uint64
(
optionNameNetworkID
,
1
,
"ID of the Swarm network"
)
cmd
.
Flags
()
.
StringSlice
(
optionCORSAllowedOrigins
,
[]
string
{},
"origins with CORS headers enabled"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment