Skip to content

[utils] Turn on the help arg option in micro.py  #560

@TieWay59

Description

@TieWay59

I think removing this config (the add_help is set True by default) won't do any harm and will make users feel easier to read into these descriptions.

parser = argparse.ArgumentParser(add_help=False)

This line is last modified 4 years ago shipped along with the micro.py itself, see #190 5882e58.

And the add_help is originally turned off by some intention, but as a newbie, I've found it helpful if I can just run micro.py -h to see all the arg details as below:

usage: micro.py [-h] [--raw] [--enrich] [--identities-load]
                [--identities-merge] [--panels] [--cfg CFG_PATH]
                [--backends [BACKEND_SECTIONS [BACKEND_SECTIONS ...]]]
                [--repos [REPOS_TO_CHECK [REPOS_TO_CHECK ...]]]
                [--logs-dir LOGS_DIR]

optional arguments:
  -h, --help            show this help message and exit
  --raw                 Activate raw task
  --enrich              Activate enrich task
  --identities-load     Activate load identities task
  --identities-merge    Activate merge identities task
  --panels              Activate panels task
  --cfg CFG_PATH        Configuration file path
  --backends [BACKEND_SECTIONS [BACKEND_SECTIONS ...]]
                        Backend sections to execute
  --repos [REPOS_TO_CHECK [REPOS_TO_CHECK ...]]
                        Limit which repositories are processed (list of URLs)
  --logs-dir LOGS_DIR   Logs Directory

@vchrombie @valeriocos Did I miss any details or I would issue a PR to fix that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions