Skip to content

Commit

Permalink
Added man page
Browse files Browse the repository at this point in the history
  • Loading branch information
ts5746 committed Oct 27, 2019
1 parent 02be38e commit 8082a4d
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 7 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@

## Introduction

Whiteflag is a fully neutral and secure communciations means based on
blockchain technology. It enables near real-time communication in armed
conflicts and disasters to exchange early warning and status information
to create shared situational awareness.

This Whiteflag utility is a [Node.js](https://nodejs.org/en/about/) command
line interface (CLI) that creates and sends Whiteflag messages for specified
cultural heritage sites listed on the UNESCO World Heritage List.

Sending a Whiteflag message is the digital equivalent of placing a physical
protective sign. Whiteflag is a fully neutral and secure communciations means
that allows near real-time communication in conflicts to exchange early
warning and status information to create shared situational awareness.
cultural heritage sites listed on the UNESCO World Heritage List. This is the
digital equivalent of placing a physical protective sign.

Note that this utility only processes *cultural* heritage sites, because
Whiteflag (currently) only defines a message (`P52`) that corresponds with the
Expand Down
74 changes: 74 additions & 0 deletions doc/man/wfwhl.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
.TH WFWHL 1
.SH NAME
wfwhl \- send protective signs for WHL sites with Whiteflag
.SH SYNOPSIS
.B wfwhl
[\fI\,OPTION\/\fR]...
.SH DESCRIPTION
Create and send Whiteflag messages for specified cultural heritage sites listed
on the UNESCO World Heritage List, which is the digital equivalent of placing a
physical protective sign.
.PP
Whiteflag is a fully neutral and secure communciations means based on
blockchain technology. It enables near real-time communication in armed
conflicts and disasters to exchange early warning and status information
to create shared situational awareness.
.SH OPTIONS
.TP
.BR \-s ", " \-\-sites =\fISITEID\fR
Specify the world heritage site(s) to be processed by \fISITEID\fR number; multiple
sites may be specified. If no sites are specified, all sites are processed.
.TP
.BR \-w ", " \-\-web =\fIURL\fR
The source \fIURL\fR of the WHL in XML on the web. If not specified the default is
\fIhttps://whc.unesco.org/en/list/xml/\fR. Cannot be used with \fB\-f\fR.
.TP
.BR \-f ", " \-\-file =\fIFILE\fR
The source \fIFILE\fR containing the WHL in XML. Cannot be used with \fB\-w\fR.
.TP
.BR \-t ", " \-\-transmit
(NOT IMPLEMENTED) Transmit the Whiteflag message(s) on the blockchain. Requires \fB\-i\fR,
\fB\-b\fR and \fB\-a\fR to be specified, either on the command line or using
a configuration file with \fB\-\-config\fR.
.TP
.BR \-i ", " \-\-interface =\fIURL\fR
(NOT IMPLEMENTED) The Whiteflag API REST interface \fIURL\fR to post the message(s) to be sent.
.TP
.BR \-b ", " \-\-blockchain =\fIBLOCKCHAIN\fR
(NOT IMPLEMENTED) The \fIBLOCKCHAIN\fR to be used for sending the message(s).
.TP
.BR \-a ", " \-\-address =\fIADDRESS\fR
(NOT IMPLEMENTED) The blockchain \fIADDRESS\fR to be used for sending the message(s).
.TP
.BR \-o ", " \-\-stdout
Send the Whiteflag message(s) to stdout. This allows the data to be piped to other processes.
.TP
.BR \-v ", " \-\-verbose
Provide detailed processing output.
.TP
.BR \-\-help
Show help message.
.TP
.BR \-\-version
Show version number.
.TP
.BR \-\-config =\fIFILE\fR
Path to a JSON config \fIFILE\fR with preconfigured arguments; especially useful to
specify Whiteflag API interface URL, blockchain and address.
.SH LEGAL
THE USAGE OF SIGNS AND SIGNALS WITH THIS SOFTWARE IS SUBJECT TO LOCAL AND/OR INTERNATIONAL LAWS
.PP
The Whiteflag WHL utility is dedicated to the public domain under the
Creative Commons CC0-1.0 Universal Public Domain Dedication statement.
Note that this only applies to this software, and that this
explicitly DOES NOT imply endorsement or permission by UNESCO to use
WHL information, which is subject to the terms and policies of the
UNESCO World Heritage Centre.
.PP
The usage of protective signs is subject to International Humanitarian
Law. Misuse of protective signs is a punishable violation under local
and international laws. This utility only provides an additional means of
communication for certain signs and signals, and it does not replace any
existing standard, regulation or means of communication, whether mandatory
or not, including but not limited to physical signs, radio communications,
official registers, etc.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
"directories": {
"lib": "./lib",
"test": "./test",
"doc": "./doc"
"doc": "./doc",
"man": "./doc/man"
},
"main": "main.js",
"bin": {
Expand Down

0 comments on commit 8082a4d

Please sign in to comment.