[Open-scap] Including default syntax for --report & --results
Martin Preisler
mpreisle at redhat.com
Fri Nov 14 11:33:57 UTC 2014
----- Original Message -----
> From: "Shawn Wells" <shawn at redhat.com>
> To: "open-scap-list" <open-scap-list at redhat.com>
> Sent: Thursday, November 13, 2014 8:47:41 PM
> Subject: [Open-scap] Including default syntax for --report & --results
>
> Would it be possible to create a "default" file name syntax when
> openscap receives empty --report & --results arguments?
That's definitely possible but I don't know how to achieve it with getopt.
> Something like...
> oscap xccdf eval --profile foo --results --report content.xml
How would the args parser know whether results should be "--report" or default?
> Would generate...
> `hostname`-`date +%F:%R:%S`-{results report}.xml
>
> aka
> ssg-rhel5-dev-2014-11-13:14:43:56-report.xml
>
> If I generate a patch for this functionality, what branch would I submit
> a PR against?
This is a new feature so I would say master branch.
--
Martin Preisler
More information about the Open-scap-list
mailing list