Skip to content

Conversation

@fielding
Copy link
Contributor

@fielding fielding commented Oct 11, 2018

This implements and resolves #7 as discussed in the comments of that issue. 😄

Incidentally, it also implements a basic structure for cli options to be added in the future and a 'help menu' displayed by -h or --help flag.

Sample --help display

Usage: git2json [-h | --help] [--version] [<path>...]

Options:
  --help, -h  print this help message                                  [boolean]
  --version   print the version number                                [boolean]

Examples:
  git2json                                            run git2json on current directory
  git2json ~/src/hack/git2json            run git2json on specified path
  git2json ~/etc ~/src/hack/git2json  run git2json on multiple paths

I wasn't sure what to put by the description of each usage example or how to word it. We can change that easily though.

Let me know if any changes are needed!

Happy Hacking,
Fielding

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

Successfully merging this pull request may close these issues.

[Feature request] Option to pass custom git location

1 participant