<commit_before>package main

import (
	"github.com/couchbaselabs/cbfs/tools"
)

func main() {
	cbfstool.ToolMain(
		map[string]cbfstool.Command{
			"upload":   {-2, uploadCommand, "/src/dir /dest/dir", uploadFlags},
			"download": {2, downloadCommand, "/src/dir /dest/dir", dlFlags},
			"ls":       {0, lsCommand, "[path]", lsFlags},
			"rm":       {-1, rmCommand, "path", rmFlags},
			"info":     {0, infoCommand, "", infoFlags},
			"fileinfo": {1, fileInfoCommand, "path", fileInfoFlags},
		})
}<commit_msg>Allow single-arg download.<commit_after>package main

import (
	"github.com/couchbaselabs/cbfs/tools"
)

func main() {
	cbfstool.ToolMain(
		map[string]cbfstool.Command{
			"upload":   {-2, uploadCommand, "/src/dir /dest/dir", uploadFlags},
			"download": {-1, downloadCommand, "/src/dir /dest/dir", dlFlags},
			"ls":       {0, lsCommand, "[path]", lsFlags},
			"rm":       {-1, rmCommand, "path", rmFlags},
			"info":     {0, infoCommand, "", infoFlags},
			"fileinfo": {1, fileInfoCommand, "path", fileInfoFlags},
		})
}
{'fraction_non_alphanumeric': 0.19864341085271317, 'fraction_numerical': 0.011627906976744186, 'mean_word_length': 3.8271028037383177, 'pattern_counts': {'":': 12, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 5, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3843374', 'n_tokens_mistral': 418, 'n_tokens_neox': 379, 'n_words': 80}