aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpatchwork/bin/pwclient4
1 files changed, 3 insertions, 1 deletions
diff --git a/patchwork/bin/pwclient b/patchwork/bin/pwclient
index 236b237..2193fd5 100755
--- a/patchwork/bin/pwclient
+++ b/patchwork/bin/pwclient
@@ -507,7 +507,6 @@ def main():
)
update_parser.add_argument(
'-s', metavar='STATE',
- required=True,
help='''Set patch state (e.g., 'Accepted', 'Superseded' etc.)'''
)
update_parser.add_argument(
@@ -572,6 +571,9 @@ def main():
sys.exit(1)
commit_str = args.get('c')
+ if state_str is None and archived_str is None and action == 'update':
+ update_parser.error('Must specify one or more update options (-a or -s)')
+
if args.get('n') != None:
try:
filt.add("max_count", args.get('n'))