Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Correct, and if stdin is not a tty it should error out instead of prompting


The one thing missing from the example is a little more contextual help. Not only should it prompt you for the stage, it should say “use --stage [development|staging|production] on the command line to skip this prompt” or some such. (Could be as terse as the prompt reading “please specify --stage”.)


Like for the confirmation example? I agree. It would help clear this up. The points people are raising here with prompting are definitely not issues, they're just misunderstanding my point.


I'm not convinced all of them have even read this perfectly understandable point.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: