#55 Fix short option of --profile
Merged 3 years ago by tkopecek. Opened 3 years ago by alexi.
alexi/koji-tools profile  into  master

Fix short option of --profile
Alex Iribarren • 3 years ago  
file modified
+1 -1
@@ -121,7 +121,7 @@ 

  

  parser = OptionParser(usage="%prog tag <tag...>")

  parser.add_option('-c', '--channel', default='default', help='limit to a channel')

- parser.add_option('-r', '--profile', default='koji', help='set the koji profile')

+ parser.add_option('-p', '--profile', default='koji', help='set the koji profile')

  options, args = parser.parse_args()

  confopts = koji.read_config(options.profile)

  session = koji.ClientSession(confopts['server'])

I'm not sure why the short option of --profile is -r, but it looks like a mistake. This brings it in line with the Koji CLI,

Commit aa95406 fixes this pull-request

Pull-Request has been merged by tkopecek

3 years ago

Pull-Request has been merged by tkopecek

3 years ago
Metadata