Skip to content

Commit

Permalink
Change usages text aligment
Browse files Browse the repository at this point in the history
  • Loading branch information
NickAb committed Jun 2, 2019
1 parent 45c25c7 commit 34dec73
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -26,10 +26,10 @@ Command-line utils for iOS simulators. Use in automated tests to list or delete
Usage: xcrun simctl spawn booted <subcommand> ...
Subcommands:
media <subcommand>
list List media assets
delete Delete all media assets
help Print usage
media <subcommand>
list List media assets
delete Delete all media assets
help Print usage
```

## License
Expand Down
4 changes: 2 additions & 2 deletions ios-utils/Cli/Cli.swift
Expand Up @@ -59,13 +59,13 @@ final class Cli {
private func printCommandUsage(command: Command, indentation: Int) {
let indent = String(repeating: " ", count: indentation)
let cmd = (command is CommandGroup) ? "\(command.command) <subcommand>" : command.command
let action = "\(indent)\(cmd)".padding(toLength: 24, withPad: " ", startingAt: 0)
let action = "\(indent)\(cmd)".padding(toLength: 30, withPad: " ", startingAt: 0)

print("\(action) \(command.shortDescription)")

if (command is CommandGroup) {
for subCommand in (command as! CommandGroup).subCommands {
printCommandUsage(command: subCommand, indentation: indentation + command.command.count + 1)
printCommandUsage(command: subCommand, indentation: indentation + 4)
}
} else {

Expand Down

0 comments on commit 34dec73

Please sign in to comment.