@@ -1238,7 +1238,7 @@ def __init__(self):
12381238 self .parser .add_argument (
12391239 "command" ,
12401240 nargs = argparse .REMAINDER ,
1241- help = "Job command and iniital arguments" ,
1241+ help = "Job command and initial arguments" ,
12421242 )
12431243
12441244 @staticmethod
@@ -1374,6 +1374,8 @@ def main(self, args):
13741374 for xargs in commands :
13751375 total += len (self .cc_list (xargs ))
13761376
1377+ if total == 0 :
1378+ raise ValueError ("no jobs provided for bulk submission" )
13771379 # Initialize progress bar if requested:
13781380 if args .progress :
13791381 if not args .dry_run :
@@ -1770,16 +1772,17 @@ def main():
17701772 # bulksubmit
17711773 bulksubmit = BulkSubmitCmd ()
17721774 description = """
1773- Submit a series of commands given on the commandline. This is useful
1774- with shell globs, e.g. `flux mini bulksubmit *.sh`, and will allow
1775- jobs to be submitted much faster than calling flux-mini submit in a
1776- loop.
1775+ Submit a series of commands given on the command line or on stdin,
1776+ using an interface similar to GNU parallel or xargs.
1777+ Allows jobs to be submitted much faster than calling flux-mini
1778+ submit in a loop. Inputs on the command line are separated from
1779+ each other and the command with the special delimiter ':::'.
17771780 """
17781781 bulksubmit_parser_sub = subparsers .add_parser (
17791782 "bulksubmit" ,
17801783 parents = [bulksubmit .get_parser ()],
17811784 help = "enqueue jobs in bulk" ,
1782- usage = "flux mini bulksubmit [OPTIONS...] COMMAND [COMMANDS ...]" ,
1785+ usage = "flux mini bulksubmit [OPTIONS...] COMMAND [ARGS ...]" ,
17831786 description = description ,
17841787 formatter_class = flux .util .help_formatter (),
17851788 )
0 commit comments