Skip to content

Commit

Permalink
Print version
Browse files Browse the repository at this point in the history
  • Loading branch information
whilp committed Oct 18, 2015
1 parent 3801e36 commit 5db4bcd
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions 1pwsafe.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,27 @@ package main
import (
"bytes"
"encoding/csv"
"flag"
"fmt"
"io"
"log"
"os"
"strings"
"text/template"
)

var (
version string
fVersion = flag.Bool("v", false, "print program version")
)

func main() {
flag.Parse()
if *fVersion {
fmt.Fprintf(os.Stdout, "1pwsafe %s\n", version)
os.Exit(0)
}

w := csv.NewWriter(os.Stdout)
r := csv.NewReader(os.Stdin)
r.Comma = '\t'
Expand Down

0 comments on commit 5db4bcd

Please sign in to comment.