mirror of
https://github.com/charmbracelet/glow.git
synced 2026-08-22 08:04:18 +02: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…
Add table
Add a link
Reference in a new issue