1
0
mirror of https://github.com/rclone/rclone.git synced 2025-12-06 00:03:32 +00:00

Factor UserAgent to fs and move Version to fs

This commit is contained in:
Nick Craig-Wood
2014-07-13 18:58:06 +01:00
parent e40b09fe61
commit c1a245d1c8
9 changed files with 18 additions and 15 deletions

View File

@@ -228,7 +228,7 @@ Syntax: [options] subcommand <parameters> <parameters...>
Subcommands:
`, Version)
`, fs.Version)
for i := range Commands {
cmd := &Commands[i]
fmt.Fprintf(os.Stderr, " %s %s\n", cmd.Name, cmd.ArgsHelp)
@@ -329,7 +329,7 @@ func StartStats() {
func main() {
ParseFlags()
if *version {
fmt.Printf("rclone %s\n", Version)
fmt.Printf("rclone %s\n", fs.Version)
os.Exit(0)
}
command, args := ParseCommand()