Skip to content

AttributeError: 'Namespace' object has no attribute 'fileArgs' #335

Description

@KyleKing

Bug Metadata

  • Version of extract_msg: [0.38.4 and 0.39.0, but not 0.30.11]
  • Your python version: Python [3.10.7]
  • How did you launch extract_msg?
    • My command line

Describe the bug

Parser error for positional arguments to extract_msg ... --out-name ...

I believe the below line should be: if options.outName and options.msgs and len(options.msgs) > 0:

if options.outName and options.fileArgs and len(options.fileArgs) > 0:

Because of this declaration:

# [msg files]
parser.add_argument('msgs', metavar='msg', nargs='+',
help='An MSG file to be parsed.')

Traceback

Traceback (most recent call last):
  File "../bin/extract_msg", line 8, in <module>
    sys.exit(main())
  File "../venv/lib/python3.10/site-packages/extract_msg/__main__.py", line 14, in main
    args = utils.getCommandArgs(sys.argv[1:])
  File "../venv/lib/python3.10/site-packages/extract_msg/utils.py", line 402, in getCommandArgs
    if options.outName and options.fileArgs and len(options.fileArgs) > 0:
AttributeError: 'Namespace' object has no attribute 'fileArgs'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions