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

Set description from CLI (for issue #73) #74

Closed
wants to merge 3 commits into from

Conversation

flores
Copy link

@flores flores commented Jan 6, 2012

Just uses a -d/--description flag.

$ ./gist -h
Usage: gist [options] [filename or stdin] [filename] ...
Filename '-' forces gist to read from stdin.
-p, --[no-]private Make the gist private
-d, --description [DESCRIPTION] Set the description of gist
-t, --type [EXTENSION] Set syntax highlighting of the Gist by file extension
-o, --[no-]open Open gist in browser
-m, --man Print manual
-v, --version Print version
-h, --help Display this screen
-c, --[no-]copy Copy gist URL to clipboard automatically

@skull-squadron
Copy link

Awesome, just what I was looking for.

Manually tested the CLI with and without -d, gists created as expected. 🍰 and 🍺 for you.

Bonus 🌠 for test cases.

Also, passing files via command-line seemed to break, might be unrelated: 'Creating gist failed: 200 OK'.

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.

3 participants