Skip to content

Commit

Permalink
cli: make --global flag for demo public
Browse files Browse the repository at this point in the history
Release note (cli change): The --global flag for cockroach demo is now
advertised. This flag simulates latencies in multi-node demo clusters
when the nodes are set in different regions to simulate real-life global
latencies.
  • Loading branch information
otan committed Apr 26, 2021
1 parent 4af9f2a commit 8165fad
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pkg/cli/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -766,9 +766,7 @@ func init() {
"For details, see: "+build.MakeIssueURL(53404))

boolFlag(f, &demoCtx.disableLicenseAcquisition, cliflags.DemoNoLicense)
// Mark the --global flag as hidden until we investigate it more.
boolFlag(f, &demoCtx.simulateLatency, cliflags.Global)
_ = f.MarkHidden(cliflags.Global.Name)
// The --empty flag is only valid for the top level demo command,
// so we use the regular flag set.
boolFlag(demoCmd.Flags(), &demoCtx.noExampleDatabase, cliflags.UseEmptyDatabase)
Expand Down

0 comments on commit 8165fad

Please sign in to comment.