summaryrefslogtreecommitdiff
path: root/pidu
diff options
context:
space:
mode:
Diffstat (limited to 'pidu')
-rwxr-xr-xpidu4
1 files changed, 2 insertions, 2 deletions
diff --git a/pidu b/pidu
index eef6ca3..2928e61 100755
--- a/pidu
+++ b/pidu
@@ -74,7 +74,7 @@ def check_positive(value):
if __name__ == "__main__":
parser = argparse.ArgumentParser()
- parser.add_argument('-j', '--jobs', nargs=1, type=check_positive, default=cpu_count(), help='Use N parallel process to stat() the filesystem' )
- parser.add_argument('path', nargs='*', default=os.getcwd())
+ parser.add_argument('-j', '--jobs', nargs=1, type=check_positive, default=[cpu_count()], help='Use N parallel process to stat() the filesystem' )
+ parser.add_argument('path', nargs='*', default=[os.getcwd()])
args = parser.parse_args()
main(args)