diff options
| -rw-r--r-- | argv.go | 4 | ||||
| -rw-r--r-- | doUpgrade.go | 8 |
2 files changed, 4 insertions, 8 deletions
@@ -75,8 +75,8 @@ type CloneCmd struct { } type UpgradeCmd struct { - All bool `arg:"--all" help:"show all the packages"` - Force bool `arg:"--force" help:"force un-install and re-install each package"` + All bool `arg:"--all" help:"show all the packages"` + Force bool `arg:"--force" help:"force un-install and re-install each package"` } type PublishCmd struct { diff --git a/doUpgrade.go b/doUpgrade.go index 1fc14b3..45ea369 100644 --- a/doUpgrade.go +++ b/doUpgrade.go @@ -31,12 +31,8 @@ func doPackageList(all bool) { func doUpgrade() error { me.machine = debian.InitMachine() - if argv.Upgrade.List != nil { - if argv.All { - doPackageList(true) - } else { - doPackageList(false) - } + if argv.All { + doPackageList(true) return nil } |
