Skip to content

Commit

Permalink
small update
Browse files Browse the repository at this point in the history
  • Loading branch information
bararchy committed Mar 5, 2024
1 parent beec3c3 commit ef5abfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/incremental.cr
Original file line number Diff line number Diff line change
Expand Up @@ -389,11 +389,11 @@ cluster = "app.brightsec.com" # Default cluster
repeater_id = nil

def is_cluster_format(arg)
arg.includes?(".brightsec.com")
arg.ends_with?(".brightsec.com")
end

parsed = OptionParser.parse do |parser|
parser.banner = "Usage: incremental <api_key> <project_id> [cluster(default: app.brightsec.com)] [repeater_id]"
parser.banner = "Usage: incremental -k <api_key> -p <project_id> -c [cluster(default: app.brightsec.com)] -r [repeater_id]"
parser.on("-k KEY", "--api-key=KEY", "API Key") { |v| api_key = v }
parser.on("-p PROJECT", "--project-id=PROJECT", "Project ID") { |v| project_id = v }
parser.on("-c CLUSTER", "--cluster=CLUSTER", "Cluster") do |v|
Expand Down

0 comments on commit ef5abfb

Please sign in to comment.