mirror of
https://github.com/charmbracelet/glow
synced 2024-11-10 14:14:17 +00:00
Fix starting glow without sources
This commit is contained in:
parent
f04f2a8292
commit
b7304db99e
1 changed files with 4 additions and 0 deletions
4
main.go
4
main.go
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue