mirror of
https://github.com/bspeice/metrik
synced 2024-11-23 07:38:09 -05:00
Add tainted
mode so I can try and restore the data that I destroyed while unit-testing.
This commit is contained in:
parent
529375e10b
commit
84d8103c29
@ -1,2 +1,2 @@
|
|||||||
__version__ = '0.3.8'
|
__version__ = '0.3.9'
|
||||||
__release__ = __version__
|
__release__ = __version__
|
@ -62,7 +62,14 @@ def handle_commandline():
|
|||||||
parser.add_argument('-f', '--flow', dest='flow', help='The flow to be run')
|
parser.add_argument('-f', '--flow', dest='flow', help='The flow to be run')
|
||||||
parser.add_argument('-l', '--list-flows', dest='list', action='store_true',
|
parser.add_argument('-l', '--list-flows', dest='list', action='store_true',
|
||||||
help='List all available flows to be run.')
|
help='List all available flows to be run.')
|
||||||
parser.add_argument('-o', '--config', action='store_true')
|
parser.add_argument('-o', '--config', action='store_true',
|
||||||
|
help='Output the default configuration to allow you '
|
||||||
|
'tweaking the settings. Please place at ~/.metrik,'
|
||||||
|
'or /etc/metrik')
|
||||||
|
parser.add_argument('-t', '--tainted', action='store_true', default=False,
|
||||||
|
help='Run in \'tainted\' mode, which treats the system'
|
||||||
|
' as if it were live even though a `-d` switch '
|
||||||
|
'may be present.')
|
||||||
parser.add_argument('-v', '--version', action='version',
|
parser.add_argument('-v', '--version', action='version',
|
||||||
version=__version__)
|
version=__version__)
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
@ -80,7 +87,7 @@ def handle_commandline():
|
|||||||
if type(args.present) is datetime:
|
if type(args.present) is datetime:
|
||||||
run_flow(flows[args.flow], args.present, True)
|
run_flow(flows[args.flow], args.present, True)
|
||||||
else:
|
else:
|
||||||
run_flow(flows[args.flow], parse(args.present), False)
|
run_flow(flows[args.flow], parse(args.present), args.tainted)
|
||||||
else:
|
else:
|
||||||
print("No actions specified, exiting.")
|
print("No actions specified, exiting.")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user