flagcensus

command
v0.94.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2026 License: BSD-3-Clause Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command flagcensus says, for every command in a repository, HOW it reads its arguments and what a migration from the standard `flag` package to cobra would have to carry across.

It exists because the migration is a campaign across fifty-three commands, and the two things it needs answering are both counts somebody would otherwise guess:

  • which idiom each command uses, so that the ones already finished are not opened again and the ones that answer -h with a sweep are found;
  • which flags need two dashes after the move, because `flag` accepts -releases, --releases and -j alike while pflag reads one dash as ONE letter.

⛔ IT GENERATES NOTHING. A blanket rewrite of fifty-three files is how a previous campaign here replaced a helper with a call to itself -- infinite recursion that compiled. This prints an inventory for a person to work from, and the rewiring of each main() stays a deliberate edit.

⛔ AND IT LIVES HERE RATHER THAN IN A SCRATCHPAD. Its two ancestors were written in /private/tmp on 2026-10-18, measured the fleet, and were gone with the next reboot -- so the same counts had to be derived again from nothing. A measurement worth quoting is worth a repository.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL