(input: string)
| 206 | * A command with just a trailing space is considered to have no arguments |
| 207 | */ |
| 208 | export 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 |
no test coverage detected