Changeset View
Changeset View
Standalone View
Standalone View
swh/deposit/cli/client.py
Show First 20 Lines • Show All 207 Lines • ▼ Show 20 Lines | try: | ||||
if archive_deposit: | if archive_deposit: | ||||
metadata = None | metadata = None | ||||
if metadata_deposit and not metadata: | if metadata_deposit and not metadata: | ||||
raise InputError( | raise InputError( | ||||
"Metadata deposit must be provided for metadata " | "Metadata deposit must be provided for metadata " | ||||
"deposit (either a filepath or --name and --author)") | "deposit (either a filepath or --name and --author)") | ||||
if not archive and not metadata: | if not archive and not metadata and partial: | ||||
ardumont: I got a bit confused by this at first.
I think i'm better now...
| |||||
raise InputError( | raise InputError( | ||||
'Please provide an actionable command. See --help for more ' | 'Please provide an actionable command. See --help for more ' | ||||
'information') | 'information') | ||||
if replace and not deposit_id: | if replace and not deposit_id: | ||||
raise InputError( | raise InputError( | ||||
'To update an existing deposit, you must provide its id') | 'To update an existing deposit, you must provide its id') | ||||
▲ Show 20 Lines • Show All 163 Lines • Show Last 20 Lines |
I got a bit confused by this at first.
I think i'm better now...