ThomasTJdev / nim_websitecreator

Nim fullstack website framework - deploy a website within minutes
https://nimwc.org
MIT License
176 stars 7 forks source link

Quit if user has provided arguments #97

Closed ThomasTJdev closed 5 years ago

ThomasTJdev commented 5 years ago

When the user provides arguments, perform arg-action and then quit(). Arg-actions should only be performed once.

Reason:

  1. When enabling plugins and args are present, restarting nimwc will try to perform the arg-actions again.
  2. When running in production and args are present, a restart/breakdown will try to perform the arg-actions again.
ThomasTJdev commented 5 years ago

Ohh I got 2 PR in one... PR #db39763 is about the password lenght. The pass length in createAdmin and login is not the same. CreateAdmin = 9, login = 10.

juancarlospaco commented 5 years ago

No problem, looks good to me. :+1: Im Merging it in a few hours, if you dont do it before. :slightly_smiling_face: