Skip to content

Commit 9a44cc4

Browse files
committed
(maint) Add --user CLI option on delete and list subcommands
To support usage without a configuration file.
1 parent 8341a5f commit 9a44cc4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/vmfloaty.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ def run # rubocop:disable Metrics/AbcSize
9090
c.option '--json', 'Prints information as JSON'
9191
c.option '--token STRING', String, 'Token for pooler service'
9292
c.option '--url STRING', String, 'URL of pooler service'
93+
c.option '--user STRING', String, 'User to authenticate with'
9394
c.action do |args, options|
9495
verbose = options.verbose || config['verbose']
9596

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

0 commit comments

Comments
 (0)