MCPcopy Create free account
hub / github.com/codeaashu/claude-code / hasCommandArgs

Function hasCommandArgs

src/utils/suggestions/commandSuggestions.ts:208–216  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

206 * A command with just a trailing space is considered to have no arguments
207 */
208export function hasCommandArgs(input: string): boolean {
209 if (!isCommandInput(input)) return false
210
211 if (!input.includes(' ')) return false
212
213 if (input.endsWith(' ')) return false
214
215 return true
216}
217
218/**
219 * Formats a command with proper notation

Callers 1

Calls 1

isCommandInputFunction · 0.85

Tested by

no test coverage detected