kasperpeulen / gist-generator

Create gists from the command line.
MIT License
3 stars 1 forks source link

Please document args #12

Closed Sfshaza closed 9 years ago

Sfshaza commented 9 years ago

Hey!

I want to test some of the bugs I filed earlier that you can't reproduce. I want to use the facility you added to create test gists files, but the --help option doesn't document it. (I believe it's --dry-run --verbose.) Any other args that can be added to the help file?

thx!

kasperpeulen commented 9 years ago

@Sfshaza

This is how help looks to me:

$ gist generate --help
Generate gists from the current directory.

Usage: gist generate [directory]
-h, --help         Print this usage information.
-v, --verbose      Show extra information about why a directory is skipped.
-n, --dry-run      Show which directories would be converted to gists.
-t, --test-gist    Create anonymous test gist, instead of creating public gists.

Run "gist help" to see global options.
$ gist --help
Gist manager.

Usage: gist <command> [arguments]

Global options:
-h, --help    Print this usage information.

Available commands:
  generate   Generate gists from the current directory.
  help       Display help information for gist.

Run "gist help <command>" for more information about a command.
Sfshaza commented 9 years ago

Hmmm... Strange. This is what I see.


gist-generator [master] $ pwd /Users/shaza/TMP-gist-generator/gist-generator gist-generator [master] $ git pull Already up-to-date. gist-generator [master] $ dart bin/gist.dart --help Gist manager.

Usage: gist [arguments]

Global options: -h, --help Print this usage information.

Available commands: generate Generate gists from the current directory. help Display help information for gist.

Run "gist help " for more information about a command.

kasperpeulen commented 9 years ago

Hmm ... that is strange...

I do this:

$ pub global activate --source git https://github.com/kasperpeulen/gist-generator $ gist generate --help

but I wouldn't think that could make a difference.

kasperpeulen commented 9 years ago

oh wait you do gist --help I think gist generate --help will give the information @Sfshaza

Sfshaza commented 9 years ago

Yup! I thought I had tried that yesterday but that does work. Closing!