From: Arvin Schnell Date: Thu, 10 Apr 2014 13:02:30 +0000 (+0200) Subject: - simplification X-Git-Tag: v0.2.2~2^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F69%2Fhead;p=thirdparty%2Fsnapper.git - simplification --- diff --git a/client/snapper.cc b/client/snapper.cc index 91568321..e907b397 100644 --- a/client/snapper.cc +++ b/client/snapper.cc @@ -1322,11 +1322,7 @@ help_cleanup() void command_cleanup(DBus::Connection* conn, Snapper* snapper) { - const struct option options[] = { - { 0, 0, 0, 0 } - }; - - GetOpts::parsed_opts opts = getopts.parse("cleanup", options); + GetOpts::parsed_opts opts = getopts.parse("cleanup", GetOpts::no_options); if (getopts.numArgs() != 1) { cerr << _("Command 'cleanup' needs one arguments.") << endl;