Use fs args in CLI
continuous-integration/woodpecker the build was successful
Details
continuous-integration/woodpecker the build was successful
Details
Signed-off-by: jolheiser <john.olheiser@gmail.com>main
parent
7e73fb5238
commit
5871595462
|
@ -41,7 +41,7 @@ func main() {
|
|||
templateFlag = scopeFlag.DefaultTemplate()
|
||||
}
|
||||
|
||||
if *usernameFlag == "" || *secretFlag == "" || len(os.Args) < 2 {
|
||||
if *usernameFlag == "" || *secretFlag == "" || fs.NArg() < 1 {
|
||||
panic("username, secret, and site are required")
|
||||
}
|
||||
|
||||
|
@ -52,7 +52,7 @@ func main() {
|
|||
panic(err)
|
||||
}
|
||||
|
||||
pw := s.Site(os.Args[1],
|
||||
pw := s.Site(fs.Arg(0),
|
||||
spectre.WithScope(scopeFlag),
|
||||
spectre.WithTemplate(templateFlag),
|
||||
spectre.WithCounter(*counterFlag),
|
||||
|
|
Loading…
Reference in New Issue