View Single Post
Old 07-17-2018, 11:51 PM   #140
norbusan
Zealot
norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.norbusan can do the Funky Gibbon.
 
Posts: 140
Karma: 82382
Join Date: Jan 2013
Device: Kindle Paperwhite, Kobo Glo, Kobo GloHD
Quote:
Originally Posted by geek1011 View Post
For overriding the in tag, it would be simple (just setting cfg.In). I would need to add pflag for command line parsing, so tell me before you make a PR, if you are planning to. I can do this myself if you want.
Do you prefer the external pflag or the golang internal flag library? Syntax-wise they seem to be rather close.

Adding some command line parsing I would switch to specifying the config yaml via an extra cmd line flag instead of a normal argument?

E.g.
Code:
  kobopatch [--config SomeConfig.yaml] [--firmware PathToFirmware.zip]
WDYT?
norbusan is offline   Reply With Quote