~sergiusens/snappy/tools-parted

« back to all changes in this revision

Viewing changes to cmd/snappy/cmd_update.go

  • Committer: Sergio Schvezov
  • Date: 2015-07-30 18:46:22 UTC
  • mfrom: (576.1.1 tools-grub)
  • Revision ID: sergio.schvezov@canonical.com-20150730184622-mga36e3aevz09qw5
Merged tools-grub into tools-parted.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
)
33
33
 
34
34
type cmdUpdate struct {
35
 
        DisableGC  bool `long:"no-gc" description:"Do not clean up old versions of the package."`
36
 
        AutoReboot bool `long:"automatic-reboot" description:"Reboot if necessary to be on the latest running system."`
 
35
        DisableGC  bool `long:"no-gc"`
 
36
        AutoReboot bool `long:"automatic-reboot"`
37
37
}
38
38
 
39
39
func init() {
40
 
        _, err := parser.AddCommand("update",
 
40
        arg, err := parser.AddCommand("update",
41
41
                i18n.G("Update all installed parts"),
42
42
                i18n.G("Ensures system is running with latest parts"),
43
43
                &cmdUpdate{})
44
44
        if err != nil {
45
45
                logger.Panicf("Unable to update: %v", err)
46
46
        }
 
47
        addOptionDescription(arg, "no-gc", i18n.G("Do not clean up old versions of the package."))
 
48
        addOptionDescription(arg, "automatic-reboot", i18n.G("Reboot if necessary to be on the latest running system."))
47
49
}
48
50
 
49
51
const (