diff options
author | smcv <smcv@web> | 2015-03-01 11:13:08 -0400 |
---|---|---|
committer | admin <admin@branchable.com> | 2015-03-01 11:13:08 -0400 |
commit | 627468ecb4c2743aa110894c59ec676081a3e10b (patch) | |
tree | 3b7303b8fcc5ab7de4182f3dbdd3589197fd25bf | |
parent | f9ef9bc72c47b99f3d9cd2cd3ec00b2f85eb753f (diff) | |
download | ikiwiki-627468ecb4c2743aa110894c59ec676081a3e10b.tar ikiwiki-627468ecb4c2743aa110894c59ec676081a3e10b.tar.gz |
Added a comment
-rw-r--r-- | doc/forum/refresh_and_setup/comment_2_e2476f834f9bc8fe753783e209321d4e._comment | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/doc/forum/refresh_and_setup/comment_2_e2476f834f9bc8fe753783e209321d4e._comment b/doc/forum/refresh_and_setup/comment_2_e2476f834f9bc8fe753783e209321d4e._comment new file mode 100644 index 000000000..792b151ea --- /dev/null +++ b/doc/forum/refresh_and_setup/comment_2_e2476f834f9bc8fe753783e209321d4e._comment @@ -0,0 +1,56 @@ +[[!comment format=mdwn + username="smcv" + subject="comment 2" + date="2015-03-01T15:13:08Z" + content=""" +> ikiwiki --setup $setupfile +> +> Didn't work as expected, rebuilt the whole wiki. + +The default action is to rebuild if `--setup` is used, or refresh otherwise. + +> ikiwiki -setup -refresh $setupfile +> +> Output was: +> +> cannot read -refresh: No such file or directory + +Well, no, you told ikiwiki to use a setup file named `-refresh`. That's not +going to work, unless you happen to have such a file. The man page does say + +> --setup setupfile + +implying that an argument is expected and required. Either of these would be OK, +for instance: + + ikiwiki -refresh -setup setupfile + ikiwiki --setup setupfile --refresh + +> 2.a) It is the only place where *-setup* is used. the error output and the manpage use *--setup* + +Perl's command-line parser accepts either. + +> 3.) The file with the basic settings for the installation procedure is referred to as \"setup\" file. And so are the files with the settings for a particular wiki. + +That's because the one used for the auto-installation (which is not mandatory: you can +write the entire setup file yourself if you prefer, like ikiwiki-hosting does) is a +special case of the one used for a configured wiki./ + +> And maybe it would be possible to update a wiki if the program is called with only a config file as parameter. + +ikiwiki needs either: + +* two non-option arguments, a srcdir *and* a destdir (and probably lots of other options + in practice); or + +* a setup file (which can specify most things supported by the command line) and + no non-option arguments + +Both ways are meant to work; the srcdir/destdir syntax is for very simple +cases (e.g. building static documentation) and the setup file is for +more complicated cases (entire websites). + +Treating two non-option arguments as srcdir/destdir, but a single +non-option argument as a setup file, seems more confusing to me +than the current situation. +"""]] |