Skip to content

Should init-drupal prompt for options? #14

@hussainweb

Description

@hussainweb

Right now, commands like init-drupal accept a lot of options. It's easy to forget an option and by the time you realise it, you have to start all over again. As we think about adding new options, this problem is only going to get worse.

Should we instead prompt for options so that the user has a chance to specify each thing before the operation executes? Of course, if the user has specified it on the command line, that option won't be prompted. Let's weigh this option (pun intended):

Pros

  • No need to remember multiple options
  • User experience might be better as it will be interactive leading to lesser chance of typos

Cons

  • Harder to use in scripts (you have to specify each option in the command line or the script would get stuck waiting for inputs)

I am leaning towards prompts because I don't see this tool used that often. Since it is only used occasionally, it's harder to remember all the options. Prompts would be helpful in those cases. Also, I don't have a use case of using this tool in a script.

Are there any scenarios I am not considering?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions