<commit_before>// slark is a suckless mail archiving program.
package main

import (
	"flag"
	"fmt"
	"os"
)

const VERSION = `0.0.1`

var (
	version = flag.Bool("V", false, "display version information")
	html    = flag.String("html", "html/", "write html output to directory")
	tmpldir = flag.String("templates", "tmpl/", "use template directory")
	watch   = flag.Bool("watch", false, "monitor file for updates")
)

func main() {
	flag.Parse()

	if *version {
		fmt.Printf("slark %s\n", VERSION)
	}

	args := flag.Args()
	if len(args) != 1 {
		flag.Usage()
		return
	}

	fname := args[0]
	msgs, err := ReadMboxFile(fname)<commit_msg>Fixing behaviour of the version flag<commit_after>// slark is a suckless mail archiving program.
package main

import (
	"flag"
	"fmt"
	"os"
)

const VERSION = `0.0.1`

var (
	version = flag.Bool("V", false, "display version information")
	html    = flag.String("html", "html/", "write html output to directory")
	tmpldir = flag.String("templates", "tmpl/", "use template directory")
	watch   = flag.Bool("watch", false, "monitor file for updates")
)

func main() {
	flag.Parse()

	if *version {
		fmt.Printf("slark %s\n", VERSION)
		return
	}

	args := flag.Args()
	if len(args) != 1 {
		flag.Usage()
		return
	}

	fname := args[0]
	msgs, err := ReadMboxFile(fname)
{'fraction_non_alphanumeric': 0.1646153846153846, 'fraction_numerical': 0.007692307692307693, 'mean_word_length': 3.800738007380074, 'pattern_counts': {'":': 0, '<': 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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2286762', 'n_tokens_mistral': 493, 'n_tokens_neox': 482, 'n_words': 135}