-1

Why does the repo tool not list all the possible options? For example, manifest or its sub-option -o, and -r, as used here, does not show in the output:

$ repo
usage: repo COMMAND [ARGS]
The most commonly used repo commands are:
  abandon        Permanently abandon a development branch
  branch         View current topic branches
  branches       View current topic branches
  checkout       Checkout a branch for development
  cherry-pick    Cherry-pick a change.
  diff           Show changes between commit and working tree
  diffmanifests  Manifest diff utility
  download       Download and checkout a change
  grep           Print lines matching a pattern
  info           Get info on the manifest branch, current branch or unmerged branches
  init           Initialize repo in the current directory
  list           List projects and their associated directories
  overview       Display overview of unmerged project branches
  prune          Prune (delete) already merged topics
  rebase         Rebase local branches on upstream branch
  smartsync      Update working tree to the latest known good revision
  stage          Stage file(s) for commit
  start          Start a new branch for development
  status         Show the working tree status
  sync           Update working tree to the latest revision
  upload         Upload changes for code review
See 'repo help <command>' for more information on a specific command.
See 'repo help --all' for a complete list of recognized commands.

enter code here$ repo -h

Usage: repo [-p|--paginate|--no-pager] COMMAND [ARGS]

Options:
  -h, --help      show this help message and exit
  -p, --paginate  display command output in the pager
  --no-pager      disable the pager
  --color=COLOR   control color usage: auto, always, never
  --trace         trace git command execution
  --time          time repo command execution
  --version       display this version of repo
parsley72
  • 8,449
  • 8
  • 65
  • 98
Adam Lee
  • 2,983
  • 7
  • 35
  • 47

1 Answers1

1

For a complete list of recognized commands:

$ repo help --all

For more information on a specific command:

$ repo help <commands>

For example for manifest command:

$ repo help manifest

Summary
-------
Manifest inspection utility

Usage: repo manifest [-o {-|NAME.xml} [-r]]

Options:
  -h, --help            show this help message and exit
  -r, --revision-as-HEAD
                        Save revisions as current HEAD
  --suppress-upstream-revision
                        If in -r mode, do not write the upstream field.  Only
                        of use if the branch names for a sha1 manifest are
                        sensitive.
  -o -|NAME.xml, --output-file=-|NAME.xml
                        File to save the manifest to
[...]
Hugo y
  • 1,421
  • 10
  • 20