[Bug 1804686] Re: "Formatting control flags" mentioned in man page are absent

Hans Joachim Desserud 1804686 at bugs.launchpad.net
Sat Nov 24 08:57:24 UTC 2018


** Tags added: manpage

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to golang-defaults in Ubuntu.
https://bugs.launchpad.net/bugs/1804686

Title:
  "Formatting control flags" mentioned in man page are absent

Status in golang-defaults package in Ubuntu:
  New

Bug description:
  The man page for 'gofmt' describes three 'Formatting control flags':
  -comments=true , -tabs-true, and -tabwidth=8.  If I attempt to use
  them, I get i.e. "flag provided but not defined: -tabs"

  Steps to reproduce:

  gofmt <<<"package main"  # success
  gofmt -invalidflag=true <<<"package main"  # failure, as expected
  gofmt -comments=true <<<"package main"  # failure, unexpected
  gofmt -tabs=true <<<"package main"  # failure, unexpected

  the '-comments', '-tabs' and '-tabwidth' are removed from gofmt in
  version 1.11.2, but I am using gofmt version 1.10 from Ubuntu.  If
  this change was backported to golang-go 1.10~4 then the manpage should
  be updated to match.

  ProblemType: Bug
  DistroRelease: Ubuntu 18.10
  Package: golang-go 2:1.10~4ubuntu1
  ProcVersionSignature: Ubuntu 4.18.0-11.12-generic 4.18.12
  Uname: Linux 4.18.0-11-generic x86_64
  NonfreeKernelModules: nvidia_modeset nvidia
  ApportVersion: 2.20.10-0ubuntu13.1
  Architecture: amd64
  CurrentDesktop: KDE
  Date: Thu Nov 22 12:26:51 2018
  InstallationDate: Installed on 2018-10-30 (22 days ago)
  InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725)
  SourcePackage: golang-defaults
  UpgradeStatus: Upgraded to cosmic on 2018-11-02 (19 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/golang-defaults/+bug/1804686/+subscriptions



More information about the foundations-bugs mailing list