Skip to content

Commit

Permalink
usage pointers
Browse files Browse the repository at this point in the history
  • Loading branch information
proycon committed Nov 16, 2020
1 parent a97bc96 commit 2d1cca3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion foliatools/foliaerase.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def main():
args = parser.parse_args()

if len(args.files) < 1:
print("No files specified! Do --help for usage info!", file=sys.stderr)
print("No files specified. Run with --help for usage info.", file=sys.stderr)

for file in args.files:
doc = foliaerase(file, parsetypes(args.types), keepversion=not args.upgrade)
Expand Down
3 changes: 3 additions & 0 deletions foliatools/foliasplit.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ def main():
if args.external and args.batchsize > 1:
print("WARNING: You are using the external mechanism with a batchsize greater than 1, this may produce wrongly ordered output depending on your query and your input. Please inspect your parent document to make sure the results are sensible.",file=sys.stderr)

if len(args.files) < 1:
print("No files specified. Run with --help for usage info.", file=sys.stderr)

for filename in args.files:
doc = folia.Document(file=filename)
for i, childdoc in enumerate(split(doc, args.query, args.batchsize, args.copymetadata, args.submetadata, args.suffixtemplate, args.alterids, args.external)):
Expand Down

0 comments on commit 2d1cca3

Please sign in to comment.