Skip to content

Commit 9d4203a

Browse files
committed
modified: singularity/cli/main/__init__.py
modified: singularity/cli/main/package.py
1 parent 8b0238d commit 9d4203a

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

singularity/cli/main/__init__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@ def get_parser():
3535

3636

3737
# Global Variables
38-
parser.add_argument("--version", dest='version',
39-
help="show software version",
40-
default=False, action='store_true')
41-
4238

4339
parser.add_argument('--debug', dest="debug",
4440
help="use verbose logging to debug.",

singularity/cli/main/package.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ def main(args,parser,subparser):
4242
if args.outfolder is not None:
4343
output_folder = os.getcwd()
4444

45-
4645
# If we are given an image, ensure full path
4746
if args.image is not None:
4847

49-
if not os.path.exists(args.image):
48+
image = args.image
49+
if not os.path.exists(image):
5050
cli = Singularity(debug=args.debug)
51-
image = cli.pull(args.image)
51+
image = cli.pull(image)
5252

5353
if image is None:
5454
bot.error("Cannot find image. Exiting.")

0 commit comments

Comments
 (0)