Skip to content

Commit

Permalink
Merge branch 'master' of github.com:jjjake/internetarchive
Browse files Browse the repository at this point in the history
  • Loading branch information
jjjake committed Dec 17, 2018
2 parents 6c8221d + c28ff59 commit 98be93d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions internetarchive/cli/ia_copy.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ def main(argv, session, cmd='copy'):
s = Schema({
str: Use(bool),
'<src-identifier>/<src-file>': And(str, And(And(str, lambda x: '/' in x,
error='Destiantion not formatted correctly. See usage example.'),
error='Destination not formatted correctly. See usage example.'),
assert_src_file_exists, error=(
'https://archive.org/download/{} does not exist. '
'Please check the identifier and filepath and retry.'.format(src_path)))),
'<dest-identifier>/<dest-file>': And(str, lambda x: '/' in x,
error='Destiantion not formatted correctly. See usage example.'),
error='Destination not formatted correctly. See usage example.'),
'--metadata': Or(None, And(Use(get_args_dict), dict),
error='--metadata must be formatted as --metadata="key:value"'),
'--header': Or(None, And(Use(get_args_dict), dict),
Expand Down
2 changes: 1 addition & 1 deletion internetarchive/cli/ia_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def main(argv, session):
'<src-identifier>/<src-file>': And(str, lambda x: '/' in x,
error='Source not formatted correctly. See usage example.'),
'<dest-identifier>/<dest-file>': And(str, lambda x: '/' in x,
error='Destiantion not formatted correctly. See usage example.'),
error='Destination not formatted correctly. See usage example.'),
})
try:
args = s.validate(args)
Expand Down

0 comments on commit 98be93d

Please sign in to comment.