Skip to content

Commit

Permalink
(maint) Add --user CLI option on delete and list subcommands
Browse files Browse the repository at this point in the history
To support usage without a configuration file.
  • Loading branch information
nwolfe committed Aug 24, 2020
1 parent 8341a5f commit 9a44cc4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/vmfloaty.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ def run # rubocop:disable Metrics/AbcSize
c.option '--json', 'Prints information as JSON'
c.option '--token STRING', String, 'Token for pooler service'
c.option '--url STRING', String, 'URL of pooler service'
c.option '--user STRING', String, 'User to authenticate with'
c.action do |args, options|
verbose = options.verbose || config['verbose']

Expand Down Expand Up @@ -212,6 +213,7 @@ def run # rubocop:disable Metrics/AbcSize
c.option '--json', 'Outputs hosts scheduled for deletion as JSON'
c.option '--token STRING', String, 'Token for pooler service'
c.option '--url STRING', String, 'URL of pooler service'
c.option '--user STRING', String, 'User to authenticate with'
c.action do |args, options|
verbose = options.verbose || config['verbose']
service = Service.new(options, config)
Expand Down

0 comments on commit 9a44cc4

Please sign in to comment.