Opened 10 years ago

Closed 10 years ago

#8232 closed (invalid) should work with the `yes` utility

Reported by: nslater Owned by: nobody
Component: Core (Management commands) Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


I am trying to build ./ test into a build script and if a previous invokation has failed this command will ask if the user wants to create a database. As the build script is non-interactive I would like a way to specify "yes" to this question from the command line.

The two common approaches to this would be:

  • Add an --force-yes option, or similar
  • Read STDIN for the value so that the UNIX yes command could be piped into it

Change History (1)

comment:1 Changed 10 years ago by Russell Keith-Magee

Resolution: invalid
Status: newclosed

This is what the --noinput option is for. The same option is used for a wide range of django-admin commands to accept the default option.

Note: See TracTickets for help on using tickets.
Back to Top