Skip to content

Commit

Permalink
Support fastly --help <command> format (#581)
Browse files Browse the repository at this point in the history
  • Loading branch information
Integralist authored Jun 24, 2022
1 parent ecfb105 commit e190186
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/app/usage.go
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,12 @@ func processCommandInput(
return command, cmdName, fsterr.RemediationError{Prefix: buf.String()}
}

// Catch scenario where user wants to view help with the following format:
// fastly --help <command>
if cmd.IsHelpFlagOnly(opts.Args) {
return command, cmdName, help(vars, nil)
}

return command, cmdName, nil
}

Expand Down

0 comments on commit e190186

Please sign in to comment.