Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation Option wrong spelling #265

Open
HenryBlairG opened this issue Jun 6, 2024 · 1 comment
Open

Documentation Option wrong spelling #265

HenryBlairG opened this issue Jun 6, 2024 · 1 comment

Comments

@HenryBlairG
Copy link

I found that in this part of the docs that the config property that is mentioned is functions, and trying out in my project discover that is actually function. Maybe it could help others in the future to fix this tiny detail.

Great Library!!

@rubik
Copy link
Owner

rubik commented Oct 20, 2024

@HenryBlairG Hi Henry, could you clarify? The documentation shows the option name is -f, --functions and the help command matches that:

$ radon hal -h
usage: radon hal [-h] [-e <str>] [-i <str>] [-j] [-f] [-O <str>] [--include-ipynb] [--ipynb-cells] paths [paths ...]

The Halstead metrics are a series of measurements meant to quantitatively measure the complexity of code, including the
difficulty a programmer would have in writing it.

positional arguments:
  paths                 The paths where to find modules or packages to analyze. More than one path is allowed.

options:
  -h, --help            show this help message and exit
  -e <str>, --exclude <str>
                        Exclude files only when their path matches one of these glob patterns. Usually needs quoting at the
                        command line.
  -i <str>, --ignore <str>
                        Ignore directories when their name matches one of these glob patterns: radon won't even descend into
                        them. By default, hidden directories (starting with '.') are ignored.
  -j, --json            Format results in JSON.
  -f, --functions       Analyze files by top-level functions instead of as a whole.
  -O <str>, --output-file <str>
                        The output file (default to stdout).
  --include-ipynb       Include IPython Notebook files
  --ipynb-cells         Include reports for individual IPYNB cells

The --function (singular) option doesn't exist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants