Fix starting glow without sources

This commit is contained in:
Christian Muehlhaeuser 2020-01-08 17:23:04 +01:00
parent f04f2a8292
commit b7304db99e
No known key found for this signature in database
GPG key ID: 3CF9FA45CA1EBB7E

View file

@ -101,6 +101,10 @@ func readerFromArg(s string) (*Source, error) {
}
func execute(cmd *cobra.Command, args []string) error {
if len(args) == 0 {
return executeArg(cmd, "")
}
for _, arg := range args {
if err := executeArg(cmd, arg); err != nil {
return err