Compare commits
3 Commits
c579c172ef
...
cb36b8adb3
Author | SHA1 | Date | |
---|---|---|---|
cb36b8adb3 | |||
ded60aa742 | |||
adf734f3c1 |
4
.vscode/launch.json
vendored
4
.vscode/launch.json
vendored
@ -8,7 +8,6 @@
|
||||
"name": "Use Test Resources",
|
||||
"type": "python",
|
||||
"request": "launch",
|
||||
"program": "${workspaceFolder}/csvbyname/csvbyname.py",
|
||||
"console": "integratedTerminal",
|
||||
"args": [
|
||||
"${workspaceFolder}/tests/resources",
|
||||
@ -20,7 +19,8 @@
|
||||
"-V",
|
||||
"DEBUG"
|
||||
],
|
||||
"justMyCode": true
|
||||
"justMyCode": true,
|
||||
"module": "csvbyname.cli"
|
||||
}
|
||||
]
|
||||
}
|
1
Jenkinsfile
vendored
1
Jenkinsfile
vendored
@ -20,6 +20,7 @@ pipeline {
|
||||
stage("test") {
|
||||
steps {
|
||||
sh "pip install dist/*.whl"
|
||||
sh "csvbyname -h"
|
||||
}
|
||||
}
|
||||
stage("archive") {
|
||||
|
@ -13,7 +13,7 @@ def run(args):
|
||||
args.recursive,
|
||||
args.add_re_property,
|
||||
)
|
||||
write_collected_to_csv(args.output, collected, pkeys)
|
||||
write_collected_to_csv(args.output, collected, pkeys, args.output_basename)
|
||||
|
||||
|
||||
def main():
|
||||
@ -64,6 +64,16 @@ def main():
|
||||
nargs="+",
|
||||
type=str,
|
||||
)
|
||||
argparser.add_argument(
|
||||
"-n",
|
||||
"--output-basename",
|
||||
help='Adds a column called "basename" to the resulting CSV where it is just '
|
||||
"The base name of the path instead of the entire path. This is not guaranteed "
|
||||
"to be unique.",
|
||||
default=False,
|
||||
required=False,
|
||||
action="store_true",
|
||||
)
|
||||
argparser.add_argument(
|
||||
"-V",
|
||||
"--verbosity",
|
||||
|
Loading…
x
Reference in New Issue
Block a user