diff options
author | Phil Burton <philbeansburton@gmail.com> | 2015-12-07 14:30:28 +0000 |
---|---|---|
committer | Phil Burton <philbeansburton@gmail.com> | 2015-12-07 14:30:28 +0000 |
commit | a1a294d5ac75f74e615134faa76841e660cf823f (patch) | |
tree | 4fabc6d604d16d315dcd396475ddcded5273f6b1 /config.ini.example | |
parent | 33431d562ef7cc43834c65a66ba9365370c9a968 (diff) | |
parent | 75872be417067e4ef1f8d128b96fc338540cda50 (diff) |
Merge branch 'help-version-args' into 'master'
Add options to display the version and help message
It's nice to have a version output from -v and --version so we can check that we're running the latest code in IRC.
It's also nice to have a help option so people know how to use it, particularly since the #2 syntax for page numbers is new and undocumented.
I also added the command name (eg blaup) to the config so that it shows the correct thing in the help output. I had to ommit the ! from the start as if I used that, it just printed 1 for $config["command"] (I guess this is php interpreting !blaup as a boolean?)
Also added a new line to the end of the output for tidiness in a terminal, and cleaned up some unnecessary whitespace
See merge request !2
Diffstat (limited to 'config.ini.example')
-rw-r--r-- | config.ini.example | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/config.ini.example b/config.ini.example index 3b2bfd3..4e77b94 100644 --- a/config.ini.example +++ b/config.ini.example @@ -1,2 +1,3 @@ url = http://www.blaupload.co.uk -password = password (not required)
\ No newline at end of file +password = password (not required) +command = blaup |