Project

General

Profile

Feature #22164

Upgrade jobsub code to use argparse instead of optparse

Added by Shreyas Bhat about 1 month ago. Updated 9 days ago.

Status:
Work in progress
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
03/19/2019
Due date:
% Done:

0%

Estimated time:
Stakeholders:
Duration:

Description

We want to use argparse to get jobsub ready to move to python 3. Some pointers for upgrading optparse to argparse are here:

https://docs.python.org/2.7/library/argparse.html#upgrading-optparse-code

With some playing around, it looks like opts, args = parser.parse_args() in optparse can become args, extras = parser.parse_known_args() pretty easily.


Related issues

Blocks JobSub - Bug #21031: jobsub_submit allows more than one --group argument Work in progress2018-11-29

History

#1 Updated by Shreyas Bhat about 1 month ago

  • Blocks Bug #21031: jobsub_submit allows more than one --group argument added

#2 Updated by Shreyas Bhat 22 days ago

  • Status changed from New to Work in progress

#3 Updated by Shreyas Bhat 16 days ago

jobsub_fetchlog, jobsub_submit, and jobsub_q done and tested.

#4 Updated by Shreyas Bhat 9 days ago

jobsub_history done and tested.



Also available in: Atom PDF