diff options
author | Ian C <ianc@noddybox.co.uk> | 2016-04-10 19:23:34 +0100 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2016-04-10 19:23:34 +0100 |
commit | ebf8364065f80a0b51ba5ed46b182f78c30c8f84 (patch) | |
tree | 92315bc1a45f64736a6dfb0836bdfac69e6bba26 | |
parent | 079815717a89fd1015bc504ae1da2dc62c925480 (diff) |
Updated usage with version ready for tagging.
-rw-r--r-- | doc/casm.html | 3 | ||||
-rw-r--r-- | src/casm.c | 16 |
2 files changed, 18 insertions, 1 deletions
diff --git a/doc/casm.html b/doc/casm.html index 100abdc..138db3c 100644 --- a/doc/casm.html +++ b/doc/casm.html @@ -155,6 +155,9 @@ casm <i>file</i> <p>Note that switches aren't used by <b>casm</b>. Instead options are controlled by commands in the source <i>file</i>.</p> +<p>If you type the command without an argument, usage, version and license +info is displayed.</p> + <h2>Memory Layout</h2> @@ -52,6 +52,20 @@ */ +/* ---------------------------------------- VERSION INFO +*/ + +static const char *casm_usage = +"Version 1.0\n" +"\n" +"This program is distributed in the hope that it will be useful,\n" +"but WITHOUT ANY WARRANTY; without even the implied warranty of\n" +"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" +"GNU General Public License (Version 3) for more details.\n" +"\n" +"usage: casm file\n"; + + /* ---------------------------------------- TYPES */ @@ -519,7 +533,7 @@ int main(int argc, char *argv[]) if (!argv[1]) { - fprintf(stderr,"usage: casm file\n"); + fprintf(stderr,"%s\n", casm_usage); exit(EXIT_FAILURE); } |