Permalink
Browse files

commandline: --file option gone away (fixes Issue #1 on github)

Seen as:

$ seekwatcher
Traceback (most recent call last):
  File "/usr/local/bin/seekwatcher", line 887, in <module>
    if not options.trace and not options.file:
AttributeError: Values instance has no attribute 'file'

The option is gone in:
> commit 0cfc3e7
> Author: Chris Mason <chris.mason@oracle.com>
> Date:   Tue Sep 1 09:01:06 2009 -0400
>
>     Speedup: use a C struct for the blkparse parsing.

So just drop all references to 'options.file'

Reported-by: Mirek Rusin
Github-bug: #1
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
  • Loading branch information...
1 parent e594df5 commit fcd3d62db6d3d9e26c4949dc4c8d26cffec185f2 @trofi committed Aug 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 cmd/seekwatcher
View
@@ -884,7 +884,7 @@ if not blktrace_only:
rcParams['interactive'] = 'False'
from pylab import *
-if not options.trace and not options.file:
+if not options.trace:
parser.print_help()
sys.exit(1)

0 comments on commit fcd3d62

Please sign in to comment.