Skip to content

Commit

Permalink
Updated parse-tff to read multiple string inputs; moved all scripts t…
Browse files Browse the repository at this point in the history
…o a single file to share code; and added script to update old-style template files.
  • Loading branch information
alastair-droop committed Jun 28, 2018
1 parent 4f4eb29 commit 0d0c83a
Show file tree
Hide file tree
Showing 6 changed files with 213 additions and 157 deletions.
6 changes: 3 additions & 3 deletions docs/parse-tff.md
Expand Up @@ -6,7 +6,7 @@ The `parse-tff` utility parses TFF-formatted token files. Although primarily a d

~~~
usage: parse-tff [-h] [-v] [-V {error,warning,info,debug}]
[-o {TFF,JSON,dict}] [-q | -a | -i | -g | -s str]
[-o {dict,JSON,TFF}] [-q | -a | -i | -g | -s str]
[file [file ...]]
Parse qsubsec token TFF files
Expand All @@ -19,12 +19,12 @@ optional arguments:
-v, --version show program's version number and exit
-V {error,warning,info,debug}, --verbose {error,warning,info,debug}
Set logging level (default warning)
-o {TFF,JSON,dict}, --output-format {TFF,JSON,dict}
-o {dict,JSON,TFF}, --output-format {dict,JSON,TFF}
output format for single resolved token sets
-q, --quiet do not print output
-a, --print-all output multiple resolved token sets in long format
-i, --print-input output combined parsed input before resolution
-g, --print-graph output dependency graph in DOT format
-s str, --string str parse a specific string
-s str, --string str input TFF string(s) to parse
~~~

25 changes: 25 additions & 0 deletions docs/update-template.md
@@ -0,0 +1,25 @@
# Update Template Files

The `update-template` utility parses updates qsubsec2 formatted template files into the new qsubsec3 format. The modifications made are:

* `limits` time and vmem keywords are updated;
* `options` now takes individual keyword-value pairs, not a list; and
* `requirement` types are now uppercase.

## Usage

~~~
usage: update-template [-h] [-v] [-V {error,warning,info,debug}] template
Update qsubsec2 template files to qsubsec3 format
positional arguments:
template template file to update
optional arguments:
-h, --help show this help message and exit
-v, --version show program's version number and exit
-V {error,warning,info,debug}, --verbose {error,warning,info,debug}
Set logging level (default warning)
~~~

122 changes: 0 additions & 122 deletions parseTFF.py

This file was deleted.

0 comments on commit 0d0c83a

Please sign in to comment.