Commits

Paul Ruane committed 4581d3f

'help --list' now lists commands in columns.
Removed 'version' command from help (redundant owing to -V option).

Comments (0)

Files changed (2)

src/tmsu/cli/help.go

 
 	sort.Strings(commandNames)
 
-	for _, commandName := range commandNames {
-		fmt.Println(commandName)
-	}
+	formatColumns(commandNames, terminalWidth())
 }
 
 func describeCommand(commandName string) {

src/tmsu/cli/version.go

 
 var VersionCommand = Command{
 	Name:     "version",
-	Synopsis: "Display version and copyright information",
+	Synopsis: "",
 	Description: `tmsu version
 
 Displays version and copyright information.`,